From eba97ed2c8a9c12e1fed6c3a84e3bb63aac6d125 Mon Sep 17 00:00:00 2001 From: William Johnson Date: Mon, 9 Sep 2024 15:09:28 -0700 Subject: [PATCH] maybe fix compile issue --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e458d1db..12f84edf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -635,9 +635,10 @@ target_compile_options(InterSpecLib PRIVATE >) if(WIN32) #0x0601==Win7, 0x0501=WinXP (Wt CMakeLists.txt uses 0x0501x) - target_compile_definitions( InterSpecLib PUBLIC -D _WIN32_WINNT=0x0601 -D WINVER=0x0601 -D _SCL_SECURE_NO_WARNINGS /bigobj ) + target_compile_definitions( InterSpecLib PUBLIC /bigobj -D _WIN32_WINNT=0x0601 -D WINVER=0x0601 -D _SCL_SECURE_NO_WARNINGS ) target_compile_definitions( InterSpecLib PRIVATE InterSpec_EXPORTS ) - + add_definitions( /bigobj ) + if( USE_BATCH_TOOLS ) # We get error compiling multi-processor debug build of shared LibInterSpec, presumably due to some # file locking issues, so only enable parallel builds for release, if we are building shared LibInterSpec