Fix GCC compilation for windows
This commit is contained in:
@@ -100,10 +100,6 @@ else()
|
||||
add_link_options(-no-pie)
|
||||
endif()
|
||||
elseif(APPLE)
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
add_compile_options(-stdlib=libc++)
|
||||
endif()
|
||||
|
||||
if (CMAKE_OSX_ARCHITECTURES MATCHES "x86_64")
|
||||
add_link_options(-Wl,-image_base,0x10000 -Wl,-pagezero_size,0x10000)
|
||||
add_link_options(-Wl,-no_pie)
|
||||
@@ -119,4 +115,9 @@ else()
|
||||
|
||||
add_link_options(-Wl,--image-base,0x10000)
|
||||
endif()
|
||||
|
||||
# Specify C++ library to use as standard C++ when using clang
|
||||
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
|
||||
add_compile_options(-stdlib=libc++)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user