diff --git a/CMakeLists.txt b/CMakeLists.txt index 217c40f341..02d614a5b4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,8 +85,9 @@ if(CMAKE_BUILD_TYPE MATCHES "Debug" AND NOT MSVC) add_compile_definitions(_DEBUG) endif() -if(MSVC) +if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") add_compile_options("$<$:/MP>") + add_link_options("/ENTRY:mainCRTStartup") endif() if(NOT CMAKE_SIZEOF_VOID_P EQUAL 8)