Cmake changes.
This commit is contained in:
parent
28ffb4d6e3
commit
09ecb14ea7
|
@ -223,6 +223,7 @@ add_definitions(-DUNICODE -D_UNICODE)
|
|||
|
||||
# Check for C++ 11 features availability.
|
||||
# See http://stackoverflow.com/questions/10984442/how-to-detect-c11-support-of-a-compiler-with-cmake
|
||||
if(${USE_QT_5})
|
||||
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_CXX_COMPILER} -dumpversion OUTPUT_VARIABLE GCC_VERSION
|
||||
|
@ -239,6 +240,7 @@ elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
|||
elseif(${MSVC_VERSION} VERSION_LESS 1600)
|
||||
message(FATAL_ERROR "[${APP_LOW_NAME}] Your C++ compiler does not support C++ 11.")
|
||||
endif("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
||||
endif(${USE_QT_5})
|
||||
|
||||
# Setup librar ies.
|
||||
if(${USE_QT_5})
|
||||
|
|
Loading…
Reference in New Issue