mirror of
https://github.com/nigels-com/glew.git
synced 2025-01-31 17:00:25 +00:00
Resolve issue #99:
- Used cmake regex to strip out the /RTC1 flag used by MSVC debug builds, which conflicts with the -nodefaultlib and -noentry flags.
This commit is contained in:
parent
a42be263ac
commit
6a38eb3fc5
@ -101,6 +101,7 @@ if (MSVC)
|
|||||||
target_compile_options (glew_s PRIVATE -GS-)
|
target_compile_options (glew_s PRIVATE -GS-)
|
||||||
# remove stdlib dependency
|
# remove stdlib dependency
|
||||||
target_link_libraries (glew LINK_PRIVATE -nodefaultlib -noentry)
|
target_link_libraries (glew LINK_PRIVATE -nodefaultlib -noentry)
|
||||||
|
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")))
|
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
|
# remove stdlib dependency on windows with GCC and Clang (for similar reasons
|
||||||
# as to MSVC - to allow it to be used with any Windows compiler)
|
# as to MSVC - to allow it to be used with any Windows compiler)
|
||||||
|
Loading…
Reference in New Issue
Block a user