From 247890b52891063eb5ec35519416865b29544c70 Mon Sep 17 00:00:00 2001 From: looooo Date: Tue, 24 Sep 2024 23:53:07 +0200 Subject: [PATCH] set /bigobj property only for msvc --- interfaces/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/interfaces/CMakeLists.txt b/interfaces/CMakeLists.txt index 46bbe59..5efe517 100644 --- a/interfaces/CMakeLists.txt +++ b/interfaces/CMakeLists.txt @@ -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 () @@ -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 ()