Skip to content

Commit

Permalink
Skip WHOLE_ARCHIVE
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Jul 31, 2023
1 parent 9647628 commit df03190
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,11 @@ endif()
if(ImpactX_PYTHON)
add_library(pyImpactX MODULE src/python/pyImpactX.cpp)
add_library(ImpactX::pyImpactX ALIAS pyImpactX)
if(BUILD_SHARED_LIBS OR NOT WIN32)
#if(BUILD_SHARED_LIBS OR NOT WIN32)
target_link_libraries(pyImpactX PRIVATE lib)
else()
target_link_libraries(pyImpactX PRIVATE "$<LINK_LIBRARY:WHOLE_ARCHIVE,lib>") # CMake 3.24+
endif()
#else()
# target_link_libraries(pyImpactX PRIVATE "$<LINK_LIBRARY:WHOLE_ARCHIVE,lib>") # CMake 3.24+
#endif()
set(_BUILDINFO_SRC pyImpactX)
list(APPEND _ALL_TARGETS pyImpactX)

Expand Down

0 comments on commit df03190

Please sign in to comment.