Skip to content

Commit

Permalink
Fix build error with older CMake versions on VERSION_LESS compare
Browse files Browse the repository at this point in the history
fixes #10826
  • Loading branch information
Michael Friedrich committed Dec 11, 2015
1 parent 056f697 commit 0464071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ if(UNIX)
OUTPUT_VARIABLE _ICINGA2_COMPILER_VERSION
)

if (${_ICINGA2_COMPILER_VERSION} VERSION_LESS "4.7.0")
if("${_ICINGA2_COMPILER_VERSION}" VERSION_LESS "4.7.0")
message(STATUS "Your version of GCC is too old for building Icinga 2 in C++11 mode.")
set(CXX_FLAG_CXX11 OFF)
endif()
Expand Down

0 comments on commit 0464071

Please sign in to comment.