Skip to content

Commit

Permalink
CMake: Link OBJECT Target PRIVATE
Browse files Browse the repository at this point in the history
Otherwise we would propagate the `.obj` files.
  • Loading branch information
ax3l committed Jul 31, 2023
1 parent 75cb331 commit 574e54e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ endif()
if(ImpactX_LIB)
add_library(lib)
add_library(ImpactX::lib ALIAS lib)
target_link_libraries(lib PUBLIC ImpactX)
target_link_libraries(lib PRIVATE ImpactX)
set(_BUILDINFO_SRC lib)
list(APPEND _ALL_TARGETS lib)

Expand Down

0 comments on commit 574e54e

Please sign in to comment.