mirror of
https://github.com/vgough/encfs.git
synced 2024-11-25 09:23:13 +01:00
cmake: use set instead of list to modify flags
This commit is contained in:
parent
a13a9f6af5
commit
bf2cee54f5
@ -31,10 +31,10 @@ if (${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION} GREATER 3.0)
|
|||||||
else ()
|
else ()
|
||||||
if (CMAKE_COMPILER_IS_GNUCXX)
|
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||||
message ("** Assuming that GNU CXX uses -std=c++11 flag for C++11 compatibility.")
|
message ("** Assuming that GNU CXX uses -std=c++11 flag for C++11 compatibility.")
|
||||||
list(APPEND CMAKE_CXX_FLAGS "-std=c++11")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||||
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
message ("** Assuming that Clang uses -std=c++11 flag for C++11 compatibility.")
|
message ("** Assuming that Clang uses -std=c++11 flag for C++11 compatibility.")
|
||||||
list(APPEND CMAKE_CXX_FLAGS "-std=c++11")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||||
else()
|
else()
|
||||||
message ("** No CMAKE C++11 check. If the build breaks, you're on your own.")
|
message ("** No CMAKE C++11 check. If the build breaks, you're on your own.")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user