Skip to content

Commit 9a6d825

Browse files
fixup cmake
1 parent 3007d26 commit 9a6d825

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,20 +91,20 @@ if("${BLA_VENDOR}" STREQUAL "Intel10_32"
9191
OR "${BLA_VENDOR}" STREQUAL "Intel10_64ilp"
9292
OR "${BLA_VENDOR}" STREQUAL "Intel10_64ilp_seq"
9393
OR "${BLA_VENDOR}" STREQUAL "Intel10_64_dyn")
94-
target_compile_definitions(htool PRIVATE "-DHPDDM_MKL -DHTOOL_MKL")
94+
target_compile_definitions(Htool PRIVATE "-DHPDDM_MKL -DHTOOL_MKL")
9595
endif()
9696

9797
target_compile_definitions(Htool PRIVATE "-DHTOOL_WITH_PYTHON_INTERFACE" "-DHTOOL_WITH_HPDDM")
9898

9999
if(CODE_COVERAGE)
100100
if(CMAKE_C_COMPILER_ID MATCHES "GNU" OR CMAKE_CXX_COMPILER_ID MATCHES "GNU")
101101
message(STATUS "Code coverage enabled with GNU.")
102-
target_compile_options(Htool INTERFACE -fprofile-arcs -ftest-coverage -fno-elide-constructors -fno-default-inline)
103-
target_link_libraries(Htool INTERFACE gcov)
102+
target_compile_options(Htool PRIVATE -fprofile-arcs -ftest-coverage -fno-elide-constructors -fno-default-inline)
103+
target_link_libraries(Htool PRIVATE gcov)
104104
elseif(CMAKE_C_COMPILER_ID MATCHES "Clang" OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
105105
message(STATUS "Code coverage enabled with LLVM.")
106-
target_compile_options(Htool INTERFACE -fprofile-instr-generate -fcoverage-mapping)
107-
target_link_options(Htool INTERFACE -fprofile-instr-generate -fcoverage-mapping)
106+
target_compile_options(Htool PRIVATE -fprofile-instr-generate -fcoverage-mapping)
107+
target_link_options(Htool PRIVATE -fprofile-instr-generate -fcoverage-mapping)
108108
else()
109109
message(STATUS "Code coverage not available.")
110110
endif()

0 commit comments

Comments
 (0)