File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,13 @@ endif()
36
36
enable_pic ()
37
37
add_subdirectory (zlib )
38
38
39
+ # Note: zlib writes configuration header into build location
40
+ # and this location needs to be added to include path when
41
+ # using zlib.
42
+
39
43
target_include_directories (zlib PUBLIC
40
- ${PROJECT_BINARY_DIR} /extra /zlib
41
- ${PROJECT_SOURCE_DIR} /extra/ zlib
44
+ ${CMAKE_CURRENT_BINARY_DIR} /zlib
45
+ zlib
42
46
)
43
47
44
48
@@ -55,7 +59,4 @@ target_include_directories(lz4 PUBLIC lz4)
55
59
56
60
add_subdirectory (zstd )
57
61
58
- target_include_directories (zstd PUBLIC
59
- ${PROJECT_BINARY_DIR} /extra/zstd/lib
60
- ${PROJECT_SOURCE_DIR} /extra/zstd/lib
61
- )
62
+ target_include_directories (zstd PUBLIC zstd/lib )
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ PROJECT(zstd)
11
11
CMAKE_MINIMUM_REQUIRED (VERSION 2.8.9 )
12
12
13
13
SET (ZSTD_LIB_DIR
14
- "${CMAKE_SOURCE_DIR} /cdk/extra/zstd /lib" )
14
+ "${PROJECT_SOURCE_DIR} /lib" )
15
15
INCLUDE_DIRECTORIES (
16
16
${ZSTD_LIB_DIR}
17
17
${ZSTD_LIB_DIR} /common
You can’t perform that action at this time.
0 commit comments