From eb2049983b956e856e3ddc4c16d6ab2314ac0198 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Wed, 15 Nov 2023 20:58:54 -0600 Subject: [PATCH] Added no-narrowing on linux builds --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7a61706..068b32d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,7 +24,6 @@ if(NOT libgfxd_POPULATED) endforeach() endif() - # Source files include_directories(${CMAKE_CURRENT_SOURCE_DIR}/lib) @@ -49,6 +48,7 @@ endif() if(NOT CMAKE_CXX_COMPILER_ID MATCHES "MSVC") set(CMAKE_CXX_FLAGS_DEBUG "-g") set(CMAKE_CXX_FLAGS_RELEASE "-O3") + set(CMAKE_CXX_FLAGS "-Wno-narrowing") endif() # Fetch Dependencies