build: misc cmakelist fixes
Build / build (push) Failing after 4m55s

This commit is contained in:
2026-06-20 07:03:01 -03:00
parent 037260acd5
commit d390304577
+4 -6
View File
@@ -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")