From a7c970d32497b7f1624a2871fdd67435d724b1ef Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Sun, 27 Oct 2024 18:29:28 +0300 Subject: [PATCH] Fix a few warnings. --- PowerRecomp/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/PowerRecomp/CMakeLists.txt b/PowerRecomp/CMakeLists.txt index dafa7e4..81569bf 100644 --- a/PowerRecomp/CMakeLists.txt +++ b/PowerRecomp/CMakeLists.txt @@ -7,3 +7,9 @@ BIN2H(SOURCE_FILE ${POWERUTILS_ROOT}/ppc_context.h HEADER_FILE "generated/ppc_co add_executable(PowerRecomp "main.cpp" "pch.h" "recompiler.cpp" "recompiler.h" "test_recompiler.cpp" "test_recompiler.h" "recompiler_config.h" "recompiler_config.cpp") target_precompile_headers(PowerRecomp PUBLIC "pch.h") target_link_libraries(PowerRecomp PRIVATE LibPowerAnalyse tomlplusplus::tomlplusplus xxHash::xxhash) + +if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang") + target_compile_options(PowerRecomp PRIVATE -Wno-switch -Wno-unused-variable) +endif() + +target_compile_definitions(PowerRecomp PRIVATE _CRT_SECURE_NO_WARNINGS)