cmake.patch 946 B

1234567891011121314151617181920212223242526
  1. From 84648e8d06fd2676f28dc671d5748d4032094ddf Mon Sep 17 00:00:00 2001
  2. From: Anton Bolshakov <blshkv@users.noreply.github.com>
  3. Date: Sat, 20 Jun 2020 11:47:04 +0800
  4. Subject: [PATCH] respect global cmake FLAGS (#141)
  5. https://github.com/ebruck/radiotray-ng/issues/140
  6. ---
  7. CMakeLists.txt | 4 ++--
  8. 1 file changed, 2 insertions(+), 2 deletions(-)
  9. diff --git a/CMakeLists.txt b/CMakeLists.txt
  10. index 1acdc7a..f9b3338 100644
  11. --- a/CMakeLists.txt
  12. +++ b/CMakeLists.txt
  13. @@ -57,8 +57,8 @@ set(CMAKE_CXX_STANDARD 14)
  14. add_definitions("-DBOOST_LOG_DYN_LINK")
  15. add_compile_options("-fdiagnostics-color=auto")
  16. set(warnings "-Wall -Wextra -Werror -Wpedantic")
  17. -set(CMAKE_CXX_FLAGS ${warnings})
  18. -set(CMAKE_C_FLAGS ${warnings})
  19. +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${warnings}")
  20. +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${warnings}")
  21. set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -s")
  22. set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -s")