From 3fa80063e926fa70222f23f9b00860ff7a31026b Mon Sep 17 00:00:00 2001 From: jadebenn Date: Tue, 30 Jan 2024 21:13:47 -0600 Subject: [PATCH] ONE MORE TIME --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ae3dada69..fd672209a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -70,7 +70,8 @@ if(UNIX) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -O2 -fPIC") elseif(MSVC) # Skip warning for invalid conversion from size_t to uint32_t for all targets below for now - add_compile_options ("/permissive-;/Zc:inline;/wd4267;/utf-8") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /permissive- /Zc:inline") + add_compile_options ("/wd4267" "/utf-8") elseif(WIN32) add_compile_definitions(_CRT_SECURE_NO_WARNINGS) endif()