diff --git a/CMakeLists.txt b/CMakeLists.txt index 8783fa08..dc300ac8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,7 +68,7 @@ add_compile_options( $<$,$,$>:-Werror>) endif() -if(CMAKE_GENERATOR MATCHES "Visual Studio") +if(MSVC) option(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS "Export all symbols when compiling to a .dll" ON) # add_compile_options(/Wall /wd4100 /wd4820 /wd4668 /wd4061) if(${WARNING_TO_ERROR})