Skip to content

Commit

Permalink
fix(python/CMakeLists.txt): be sure we only use std 14 for python (no…
Browse files Browse the repository at this point in the history
…t std 17)
  • Loading branch information
benoitdm-oslandia authored and nyalldawson committed Oct 22, 2023
1 parent 9ea1146 commit 2d64df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/CMakeLists.txt
Expand Up @@ -174,7 +174,7 @@ GENERATE_SIP_PYTHON_MODULE_CODE(qgis._core core/core.sip "${sip_files_core}" cpp
BUILD_SIP_PYTHON_MODULE(qgis._core core/core.sip ${cpp_files} "" qgis_core)
set(SIP_CORE_CPP_FILES ${cpp_files})

if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if( "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" )
# Bad hack to fix compilation with gcc 11 - for some reason it's ignoring
# the c++ standard version set for the target in BUILD_SIP_PYTHON_MODULE!
add_definitions(-std=c++14)
Expand Down

0 comments on commit 2d64df2

Please sign in to comment.