mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2024-11-26 00:21:57 +00:00
Visual Studio 16 release-mode cmake fixup: libvcruntime.lib, msvcrt.lib
This commit is contained in:
parent
68135131a9
commit
4bbe8aa2ab
@ -121,6 +121,8 @@ if (MSVC)
|
||||
target_compile_options (glew_s PRIVATE -GS-)
|
||||
# remove stdlib dependency
|
||||
target_link_libraries (glew LINK_PRIVATE -nodefaultlib -noentry)
|
||||
target_link_libraries (glew LINK_PRIVATE libvcruntime.lib)
|
||||
target_link_libraries (glew LINK_PRIVATE msvcrt.lib )
|
||||
string(REGEX REPLACE "/RTC(su|[1su])" "" CMAKE_C_FLAGS_DEBUG ${CMAKE_C_FLAGS_DEBUG})
|
||||
elseif (WIN32 AND ((CMAKE_C_COMPILER_ID MATCHES "GNU") OR (CMAKE_C_COMPILER_ID MATCHES "Clang")))
|
||||
# remove stdlib dependency on windows with GCC and Clang (for similar reasons
|
||||
|
Loading…
Reference in New Issue
Block a user