Skip to content

Commit

Permalink
link PRIVATEly
Browse files Browse the repository at this point in the history
PUBLIC is not required here
  • Loading branch information
rabauke committed Oct 14, 2023
1 parent 3c718c0 commit 4fc47ba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ function(add_mpl_executable TARGET_NAME SOURCES)
-Wall>
$<$<CXX_COMPILER_ID:MSVC>:
/permissive- /W4 /WX>)
target_link_libraries(${TARGET_NAME} PUBLIC mpl::mpl)
target_link_libraries(${TARGET_NAME} PRIVATE mpl::mpl)
# add MPL_Debug definition if building in debug mode
target_compile_definitions(${TARGET_NAME} PUBLIC
target_compile_definitions(${TARGET_NAME} PRIVATE
$<$<CONFIG:Debug>:MPL_DEBUG>)
endfunction()

Expand Down
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function(add_test_executable TARGET_NAME SOURCES)
-Wall>
$<$<CXX_COMPILER_ID:MSVC>:
/permissive- /W4 /WX>)
target_link_libraries(${TARGET_NAME} PUBLIC mpl::mpl Boost::unit_test_framework)
target_link_libraries(${TARGET_NAME} PRIVATE mpl::mpl Boost::unit_test_framework)
add_test(NAME ${TARGET_NAME} COMMAND ${MPIEXEC_EXECUTABLE} ${MPIEXEC_NUMPROC_FLAG} ${MPIEXEC_MAX_NUMPROCS} ${MPIEXEC_PREFLAGS} ./${TARGET_NAME} ${MPIEXEC_POSTFLAGS})
endfunction()

Expand Down

0 comments on commit 4fc47ba

Please sign in to comment.