cmake: Require an up to date C standard as well, plus extensions
Fixes some strange compiler issues.
This commit is contained in:
parent
dadd56b31d
commit
f8dc0532e1
|
@ -1680,10 +1680,15 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
|
|||
|
||||
# Set C++ Standard and Extensions
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES
|
||||
C_STANDARD 17
|
||||
C_STANDARD_REQUIRED ON
|
||||
CXX_STANDARD 17
|
||||
CXX_STANDARD_REQUIRED ON
|
||||
CXX_EXTENSIONS OFF
|
||||
)
|
||||
target_compile_definitions(${PROJECT_NAME} PRIVATE
|
||||
__STDC_WANT_LIB_EXT1__=1
|
||||
)
|
||||
|
||||
# Link-Time/Interprocedural Optimization
|
||||
if(${PREFIX}ENABLE_LTO)
|
||||
|
|
Loading…
Reference in New Issue