Skip to content
Permalink
Browse files

CMake: Don't use /NODEFAULTLIB on Windows unless we're Visual Studio.

  • Loading branch information
icculus committed Mar 7, 2014
1 parent e9eb7ec commit 2b92d9b431fa8620807a48a90df578fa80d61d4b
Showing with 1 addition and 1 deletion.
  1. +1 −1 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")

0 comments on commit 2b92d9b

Please sign in to comment.