Skip to content

Commit eba97ed

Browse files
committed
maybe fix compile issue
1 parent b80bb36 commit eba97ed

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -635,9 +635,10 @@ target_compile_options(InterSpecLib PRIVATE
635635
>)
636636
if(WIN32)
637637
#0x0601==Win7, 0x0501=WinXP (Wt CMakeLists.txt uses 0x0501x)
638-
target_compile_definitions( InterSpecLib PUBLIC -D _WIN32_WINNT=0x0601 -D WINVER=0x0601 -D _SCL_SECURE_NO_WARNINGS /bigobj )
638+
target_compile_definitions( InterSpecLib PUBLIC /bigobj -D _WIN32_WINNT=0x0601 -D WINVER=0x0601 -D _SCL_SECURE_NO_WARNINGS )
639639
target_compile_definitions( InterSpecLib PRIVATE InterSpec_EXPORTS )
640-
640+
add_definitions( /bigobj )
641+
641642
if( USE_BATCH_TOOLS )
642643
# We get error compiling multi-processor debug build of shared LibInterSpec, presumably due to some
643644
# file locking issues, so only enable parallel builds for release, if we are building shared LibInterSpec

0 commit comments

Comments
 (0)