Disable compiler specific extensions

The property is set to ON by default, now turn it off.
This commit is contained in:
Chocobo1 2022-05-17 13:49:14 +08:00
parent 8d3c19c599
commit 567dd3fabb
No known key found for this signature in database
GPG key ID: 210D9C873253A68C

View file

@ -3,9 +3,9 @@
# to consume common compile options/definitions # to consume common compile options/definitions
macro(qbt_common_config) macro(qbt_common_config)
# treat value specified by the CXX_STANDARD target property as a requirement by default # treat value specified by the CXX_STANDARD target property as a requirement by default
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
add_library(qbt_common_cfg INTERFACE) add_library(qbt_common_cfg INTERFACE)