mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 19:09:00 +08:00
d4412e0ee2
* [glew] Disable the link option /nodefaultlib and /noentry * [glew] Combine with vcpkg_extract_source_archive_ex
14 lines
738 B
Diff
14 lines
738 B
Diff
diff --git a/build/cmake/CMakeLists.txt b/build/cmake/CMakeLists.txt
|
|
index 5081e0f..f76725a 100644
|
|
--- a/build/cmake/CMakeLists.txt
|
|
+++ b/build/cmake/CMakeLists.txt
|
|
@@ -108,7 +108,7 @@ if (MSVC)
|
|
target_compile_options (glew PRIVATE -GS-)
|
|
target_compile_options (glew_s PRIVATE -GS-)
|
|
# 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")))
|
|
# remove stdlib dependency on windows with GCC and Clang (for similar reasons
|