Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > e4e15f252c8ec0252be4c46439801b55 > files > 2

xygrib-1.2.6.1-3.mga9.src.rpm

From 652a5329842a373c727cd3df9b6101bc1af63970 Mon Sep 17 00:00:00 2001
From: Niclas Rosenvik <youremailsarecrap@gmail.com>
Date: Thu, 14 Nov 2019 12:01:10 +0000
Subject: [PATCH] Don't set CMAKE_CXX_FLAGS for compile options

Use the cmake command add_compile_optios instead of setting CMAKE_CXXFLAGS.
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4695b4a..87b3c4e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -27,7 +27,7 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
 set(CMAKE_CXX_STANDARD 11)
 #set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O3")
 if(UNIX AND NOT APPLE)
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fPIC")
+add_compile_options(-Wall -fPIC)
 endif()
 
 # Add support for address etc sanitizers, part 1/2 (other half after ADD_EXECUTABLE)
-- 
2.37.1