Skip to content

Commit

Permalink
Handle cmake pre-3.1 for cxx standard version.
Browse files Browse the repository at this point in the history
  • Loading branch information
abellgithub committed Aug 14, 2018
1 parent b8e6c7e commit 333a51b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/unix_compiler_options.cmake
@@ -1,6 +1,10 @@
function(pdal_target_compile_settings target)
set_property(TARGET ${target} PROPERTY CXX_STANDARD 11)
set_property(TARGET ${target} PROPERTY CXX_STANDARD_REQUIRED TRUE)
if (NOT ${CMAKE_VERSION} VERSION_LESS 3.1)
set_property(TARGET ${target} PROPERTY CXX_STANDARD 11)
set_property(TARGET ${target} PROPERTY CXX_STANDARD_REQUIRED TRUE)
else()
set(PDAL_CXX_STANDARD "-std=c++11")
endif()
if (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
#
# VERSION_GREATER_EQUAL doesn't come until cmake 3.7
Expand Down

0 comments on commit 333a51b

Please sign in to comment.