Skip to content

Commit 061e6e5

Browse files
committed
fix win32 linker errors of test
1 parent a7689dd commit 061e6e5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ Else (NOT Boost_FOUND)
1414

1515
SET(ENGINE_SOURCE_DIR "${CMAKE_SOURCE_DIR}/rts")
1616
INCLUDE_DIRECTORIES(${ENGINE_SOURCE_DIR})
17-
18-
add_definitions(-DBOOST_TEST_DYN_LINK -DSYNCCHECK -DUNIT_TEST)
17+
If (NOT WIN32)
18+
#Win32 tests links static
19+
add_definitions(-DBOOST_TEST_DYN_LINK)
20+
EndIf (NOT WIN32)
21+
add_definitions(-DSYNCCHECK -DUNIT_TEST)
1922

2023
Set(test_Log_sources
2124
"${ENGINE_SOURCE_DIR}/System/SafeCStrings.c"

0 commit comments

Comments
 (0)