build: Make ImHex fully compile with warnings enabled in MSVC

This commit is contained in:
WerWolv
2025-02-10 09:42:35 +01:00
parent 3a7578879f
commit e1580e51cf
26 changed files with 70 additions and 43 deletions

View File

@@ -10,6 +10,8 @@ if (NOT USE_SYSTEM_CAPSTONE)
add_subdirectory(${THIRD_PARTY_LIBS_FOLDER}/capstone ${CMAKE_CURRENT_BINARY_DIR}/capstone EXCLUDE_FROM_ALL)
if (NOT MSVC)
target_compile_options(capstone PRIVATE -Wno-unused-function)
else()
target_compile_options(capstone PRIVATE /wd4005)
endif()
set(CAPSTONE_LIBRARY "capstone")
set(CAPSTONE_INCLUDE_DIR ${THIRD_PARTY_LIBS_FOLDER}/capstone/include)