Skip to content

Commit

Permalink
set /bigobj property only for msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
looooo committed Sep 24, 2024
1 parent 5b2f49c commit 247890b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions interfaces/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ swig_add_library(coin

if (APPLE)
set_target_properties(coin PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
elseif (WIN32)
elseif (MSVC)
set_target_properties(coin PROPERTIES COMPILE_FLAGS "/bigobj")
elseif(WIN32)
target_link_libraries(coin PUBLIC ${Python_LIBRARIES})
endif ()

Expand Down Expand Up @@ -61,8 +62,9 @@ if (SoQt_FOUND)

if (APPLE)
set_target_properties(soqt PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
elseif (WIN32)
elseif (MSVC)
set_target_properties(coin PROPERTIES COMPILE_FLAGS "/bigobj")
elseif (WIN32)
target_link_libraries(soqt PUBLIC ${Python_LIBRARIES})
endif ()

Expand Down

0 comments on commit 247890b

Please sign in to comment.