+4
-6
@@ -11,14 +11,13 @@ add_compile_definitions(WIN32_LEAN_AND_MEAN NOMINMAX)
|
||||
project(hex-unlocked LANGUAGES CXX)
|
||||
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||
|
||||
if(MSVC)
|
||||
enable_language(RC)
|
||||
|
||||
if(CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||
add_compile_options(/EHsc /utf-8 /Zc:char8_t)
|
||||
if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64")
|
||||
add_compile_definitions(_AMD64_)
|
||||
endif()
|
||||
else()
|
||||
add_compile_options(-m64)
|
||||
enable_language(RC)
|
||||
add_link_options(-static -static-libgcc -static-libstdc++)
|
||||
endif()
|
||||
|
||||
# ------------------------------
|
||||
@@ -38,7 +37,6 @@ endif()
|
||||
# msvc stuff
|
||||
# ------------------------------
|
||||
if(CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||
string(APPEND CMAKE_CXX_FLAGS " /EHsc /DWIN32_LEAN_AND_MEAN /utf-8 /Zc:char8_t")
|
||||
if("${CMAKE_VS_PLATFORM_NAME}" STREQUAL "x64")
|
||||
string(APPEND CMAKE_CXX_FLAGS " /D_AMD64_")
|
||||
elseif(CMAKE_GENERATOR_PLATFORM STREQUAL "Win32")
|
||||
|
||||
Reference in New Issue
Block a user