Exporting all symbols from DLL for test builds on windows.

This commit is contained in:
Armin Novak 2016-08-02 11:46:11 +02:00
parent 0b6c7a3df5
commit 00890c2adc
1 changed files with 4 additions and 0 deletions

View File

@ -140,6 +140,10 @@ elseif(NOT DEFINED EXPORT_ALL_SYMBOLS)
set(EXPORT_ALL_SYMBOLS FALSE)
endif()
if (EXPORT_ALL_SYMBOLS)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif(EXPORT_ALL_SYMBOLS)
# BSD
if(${CMAKE_SYSTEM_NAME} MATCHES "BSD")
set(BSD TRUE)