CMakeLists.txt formatting.
This commit is contained in:
parent
68ab061cb4
commit
3e0789b3d3
@ -22,7 +22,7 @@ if(COMMAND cmake_policy)
|
|||||||
endif(COMMAND cmake_policy)
|
endif(COMMAND cmake_policy)
|
||||||
|
|
||||||
### General Package stuff
|
### General Package stuff
|
||||||
project( tmux-mem-cpu-load )
|
project(tmux-mem-cpu-load)
|
||||||
set(tmux-mem-cpu-load_VERSION_MAJOR 2)
|
set(tmux-mem-cpu-load_VERSION_MAJOR 2)
|
||||||
set(tmux-mem-cpu-load_VERSION_MINOR 3)
|
set(tmux-mem-cpu-load_VERSION_MINOR 3)
|
||||||
set(tmux-mem-cpu-load_VERSION_PATCH 0)
|
set(tmux-mem-cpu-load_VERSION_PATCH 0)
|
||||||
@ -36,12 +36,12 @@ check_cxx_compiler_flag("-std=c++11" COMPILER_SUPPORTS_CXX11)
|
|||||||
check_cxx_compiler_flag("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
|
check_cxx_compiler_flag("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
|
||||||
|
|
||||||
if(COMPILER_SUPPORTS_CXX11)
|
if(COMPILER_SUPPORTS_CXX11)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||||
elseif(COMPILER_SUPPORTS_CXX0X)
|
elseif(COMPILER_SUPPORTS_CXX0X)
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
|
||||||
else()
|
else()
|
||||||
message(FATAL_ERROR "
|
message(FATAL_ERROR
|
||||||
Compiler ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} has no C++11 support.")
|
"Compiler ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION} has no C++11 support.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# generate header file to handle version
|
# generate header file to handle version
|
||||||
|
Loading…
Reference in New Issue
Block a user