From e9790820903f7e349afc65706f0a4cbec2c48d49 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 7 Mar 2014 00:18:37 -0500 Subject: [PATCH] CMake: Don't use /NODEFAULTLIB on Windows unless we're Visual Studio. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d1c0815c9a..c13f4e6fd8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1256,7 +1256,7 @@ if(SDL_STATIC) set (BUILD_SHARED_LIBS FALSE) add_library(SDL2-static STATIC ${SOURCE_FILES}) set_target_properties(SDL2-static PROPERTIES OUTPUT_NAME "SDL2") - if(WINDOWS) + if(MSVC) set_target_properties(SDL2-static PROPERTIES LINK_FLAGS_RELEASE "/NODEFAULTLIB") set_target_properties(SDL2-static PROPERTIES LINK_FLAGS_DEBUG "/NODEFAULTLIB") set_target_properties(SDL2-static PROPERTIES STATIC_LIBRARY_FLAGS "/NODEFAULTLIB")