From c667aabca94071375ee0f625c6da01254fd18202 Mon Sep 17 00:00:00 2001 From: Brad Grantham Date: Thu, 18 Mar 2021 14:15:54 -0700 Subject: [PATCH] Fix https://github.com/emoon/minifb/issues/54 Don't set CMAKE_..._FLAGS... in the cache --- CMakeLists.txt | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 457c6af..846fd27 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -118,21 +118,21 @@ endif() if(NOT MSVC) # Avoid default flag values #-------------------------------------- - set(CMAKE_C_FLAGS "" CACHE STRING "" FORCE) - set(CMAKE_C_FLAGS_DEBUG "" CACHE STRING "" FORCE) - set(CMAKE_C_FLAGS_RELEASE "" CACHE STRING "" FORCE) + set(CMAKE_C_FLAGS "") + set(CMAKE_C_FLAGS_DEBUG "" ) + set(CMAKE_C_FLAGS_RELEASE "") - set(CMAKE_CXX_FLAGS "" CACHE STRING "" FORCE) - set(CMAKE_CXX_FLAGS_DEBUG "" CACHE STRING "" FORCE) - set(CMAKE_CXX_FLAGS_RELEASE "" CACHE STRING "" FORCE) + set(CMAKE_CXX_FLAGS "") + set(CMAKE_CXX_FLAGS_DEBUG "") + set(CMAKE_CXX_FLAGS_RELEASE "") - set(CMAKE_OBJC_FLAGS "" CACHE STRING "" FORCE) - set(CMAKE_OBJC_FLAGS_DEBUG "" CACHE STRING "" FORCE) - set(CMAKE_OBJC_FLAGS_RELEASE "" CACHE STRING "" FORCE) + set(CMAKE_OBJC_FLAGS "") + set(CMAKE_OBJC_FLAGS_DEBUG "") + set(CMAKE_OBJC_FLAGS_RELEASE "") - set(CMAKE_OBJCXX_FLAGS "" CACHE STRING "" FORCE) - set(CMAKE_OBJCXX_FLAGS_DEBUG "" CACHE STRING "" FORCE) - set(CMAKE_OBJCXX_FLAGS_RELEASE "" CACHE STRING "" FORCE) + set(CMAKE_OBJCXX_FLAGS "") + set(CMAKE_OBJCXX_FLAGS_DEBUG "") + set(CMAKE_OBJCXX_FLAGS_RELEASE "") # Set our flags #--------------------------------------