From 7c72410c84470589594911aca3275bae8eb6f921 Mon Sep 17 00:00:00 2001 From: xiaodaxia Date: Wed, 27 Mar 2024 11:32:17 +0800 Subject: [PATCH] no exporting compile options of ngcore --- libsrc/core/CMakeLists.txt | 2 +- nglib/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libsrc/core/CMakeLists.txt b/libsrc/core/CMakeLists.txt index d6a2eef8..79a483be 100644 --- a/libsrc/core/CMakeLists.txt +++ b/libsrc/core/CMakeLists.txt @@ -53,7 +53,7 @@ if(USE_PYTHON) endif(USE_PYTHON) if(WIN32) - target_compile_options(ngcore PUBLIC /bigobj /MP /W1 /wd4068) + target_compile_options(ngcore PUBLIC $) get_WIN32_WINNT(ver) target_compile_definitions(ngcore PUBLIC _WIN32_WINNT=${ver} WNT WNT_WINDOW NOMINMAX MSVC_EXPRESS _CRT_SECURE_NO_WARNINGS HAVE_STRUCT_TIMESPEC WIN32) target_link_options(ngcore PUBLIC /ignore:4273 /ignore:4217 /ignore:4049) diff --git a/nglib/CMakeLists.txt b/nglib/CMakeLists.txt index 66844709..b1036ea1 100644 --- a/nglib/CMakeLists.txt +++ b/nglib/CMakeLists.txt @@ -6,7 +6,7 @@ if(USE_OCC) endif(USE_OCC) if(EMSCRIPTEN) - target_compile_options(nglib PUBLIC $) + target_compile_options(nglib PUBLIC $>) target_compile_definitions(nglib PUBLIC $) target_include_directories(nglib PUBLIC $) else(EMSCRIPTEN)