Support older cmake (#23)

This commit is contained in:
Jeremy Rifkin 2023-07-25 18:51:27 -04:00 committed by GitHub
parent 5a33aeaeca
commit 7989209e5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.8...3.23) cmake_minimum_required(VERSION 3.4...3.27)
if(${CMAKE_VERSION} VERSION_LESS 3.12) if(${CMAKE_VERSION} VERSION_LESS 3.12)
cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}) cmake_policy(VERSION ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION})
@ -255,11 +255,7 @@ target_include_directories(
) )
# TODO # TODO
target_compile_features( target_compile_features(cpptrace PRIVATE cxx_range_for cxx_constexpr cxx_nullptr cxx_static_assert)
cpptrace
PUBLIC
cxx_std_11
)
set_target_properties( set_target_properties(
cpptrace cpptrace