From 40b65a93981233c2420e8a4eb653add8c438b446 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Wed, 19 Jul 2017 17:55:24 +0900 Subject: Restore compatibility with CMake versions below 3.3 --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index bca58b40..9254e029 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,7 +22,7 @@ endif() # Setup command line parameters for the compiler and linker CHECK_CXX_COMPILER_FLAG("-Wall" WALL_FLAG_SUPPORTED) if ( WALL_FLAG_SUPPORTED AND NOT CMAKE_CXX_FLAGS MATCHES "(^| )-Wall($| )") - string(APPEND CMAKE_CXX_FLAGS " -Wall") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") endif ( WALL_FLAG_SUPPORTED ) if ( CMAKE_VERSION VERSION_LESS "3.1" ) -- cgit v1.2.3