mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
37 lines
1.2 KiB
Diff
37 lines
1.2 KiB
Diff
required for pdal to compile
|
|
--
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index c6262f6..8db485f 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -81,7 +81,7 @@ endif()
|
|
if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
|
target_compile_options(Library-C++
|
|
PUBLIC
|
|
- -std=c++11
|
|
+ -std=c++17
|
|
PRIVATE
|
|
-Wall
|
|
-pedantic
|
|
@@ -91,7 +91,7 @@ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "Clang")
|
|
elseif("${CMAKE_CXX_COMPILER_ID}" MATCHES "GNU")
|
|
target_compile_options(Library-C++
|
|
PUBLIC
|
|
- -std=c++11
|
|
+ -std=c++17
|
|
# For some deprecations inside Eigen
|
|
-Wno-deprecated-declarations
|
|
PRIVATE
|
|
@@ -139,9 +139,9 @@ if(WITH_TESTS)
|
|
add_subdirectory("${PROJECT_SOURCE_DIR}/vendor/googletest-release-1.10.0/googletest")
|
|
|
|
set_target_properties(gtest PROPERTIES MACOSX_RPATH ON)
|
|
- target_compile_options(gtest PUBLIC -std=c++11)
|
|
+ target_compile_options(gtest PUBLIC -std=c++17)
|
|
set_target_properties(gtest_main PROPERTIES MACOSX_RPATH ON)
|
|
- target_compile_options(gtest_main PUBLIC -std=c++11)
|
|
+ target_compile_options(gtest_main PUBLIC -std=c++17)
|
|
|
|
add_subdirectory(test)
|
|
endif()
|