File tree Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Expand file tree Collapse file tree 5 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ link_directories(${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR})
8
8
add_executable (run_pcm run_pcm.cpp)
9
9
add_dependencies (run_pcm generate-config-hpp)
10
10
if (STATIC_LIBRARY_ONLY)
11
- target_link_libraries (run_pcm pcm-static ${ZLIB_LIBRARIES} )
11
+ target_link_libraries (run_pcm pcm-static PRIVATE ZLIB::ZLIB )
12
12
else ()
13
13
target_link_libraries (run_pcm pcm-shared)
14
14
endif ()
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ if(BUILD_CUSTOM_BOOST)
29
29
add_dependencies (unit_tests custom_boost)
30
30
endif ()
31
31
if (STATIC_LIBRARY_ONLY)
32
- target_link_libraries (unit_tests pcm-static ${ZLIB_LIBRARIES} )
32
+ target_link_libraries (unit_tests pcm-static PRIVATE ZLIB::ZLIB )
33
33
else ()
34
34
target_link_libraries (unit_tests pcm-shared)
35
35
endif ()
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ link_directories(${PROJECT_BINARY_DIR}/lib)
2
2
add_executable (C_host C_host.c)
3
3
add_executable (fail-C_host fail-C_host.c)
4
4
if (STATIC_LIBRARY_ONLY)
5
- target_link_libraries (C_host pcm-static ${ZLIB_LIBRARIES} )
6
- target_link_libraries (fail-C_host pcm-static ${ZLIB_LIBRARIES} )
5
+ target_link_libraries (C_host pcm-static PRIVATE ZLIB::ZLIB )
6
+ target_link_libraries (fail-C_host pcm-static PRIVATE ZLIB::ZLIB )
7
7
else ()
8
8
target_link_libraries (C_host pcm-shared)
9
9
target_link_libraries (fail-C_host pcm-shared)
Original file line number Diff line number Diff line change 1
1
link_directories (${PROJECT_BINARY_DIR} /lib)
2
2
add_executable (Fortran_host Fortran_host.f90 Fortran_host-modules.f90)
3
3
if (STATIC_LIBRARY_ONLY)
4
- target_link_libraries (Fortran_host pcm-static ${ZLIB_LIBRARIES} )
4
+ target_link_libraries (Fortran_host pcm-static PRIVATE ZLIB::ZLIB )
5
5
else ()
6
6
target_link_libraries (Fortran_host pcm-shared)
7
7
endif ()
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ if(BUILD_STANDALONE)
25
25
add_dependencies (update_reference_files custom_boost)
26
26
endif ()
27
27
if (STATIC_LIBRARY_ONLY)
28
- target_link_libraries (update_reference_files pcm-static ${ZLIB_LIBRARIES} )
28
+ target_link_libraries (update_reference_files pcm-static PRIVATE ZLIB::ZLIB )
29
29
else ()
30
30
target_link_libraries (update_reference_files pcm-shared)
31
31
endif ()
You can’t perform that action at this time.
0 commit comments