make ASTYLE with c++17

this fixes the compilation on my system (mac)
This commit is contained in:
Denis Rouzaud 2021-03-09 14:40:32 +01:00 committed by Nyall Dawson
parent dcf97f2d68
commit 1681dbde9a

View File

@ -12,4 +12,7 @@ if(NOT MSVC)
set_source_files_properties(${ASTYLE_SRCS} PROPERTIES COMPILE_FLAGS -w) set_source_files_properties(${ASTYLE_SRCS} PROPERTIES COMPILE_FLAGS -w)
endif() endif()
add_executable(qgisstyle ${ASTYLE_SRCS}) add_executable(qgisstyle ${ASTYLE_SRCS})
set_target_properties(qgisstyle PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/scripts) set_target_properties(qgisstyle PROPERTIES
CXX_STANDARD 17
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/scripts
)