build: Make ImHex fully compile with MSVC and Clang CL

This does NOT make ImHex work yet. However it can now be compiled
This commit is contained in:
WerWolv
2025-02-01 15:13:13 +01:00
parent 466b372d41
commit 8039ae1b90
18 changed files with 95 additions and 33 deletions

View File

@@ -585,7 +585,7 @@ macro(setupCompilerFlags target)
# Disable some warnings
set(IMHEX_C_CXX_FLAGS "-Wno-array-bounds -Wno-deprecated-declarations -Wno-unknown-pragmas")
elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
set(IMHEX_CXX_FLAGS "/EHsc")
set(IMHEX_CXX_FLAGS "/DWIN32 /D_WINDOWS /GR /EHsc")
endif()
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")