Skip to content

Commit

Permalink
CMake: Don't use /NODEFAULTLIB on Windows unless we're Visual Studio.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Mar 7, 2014
1 parent e9eb7ec commit 2b92d9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -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")
Expand Down

0 comments on commit 2b92d9b

Please sign in to comment.