mirror of
https://github.com/eclipse/upm.git
synced 2025-03-14 20:47:30 +03:00
CMakeLists.txt: make sure compiler standards extensions are disabled.
Signed-off-by: Jon Trulson <jtrulson@ics.com>
This commit is contained in:
parent
6be7012987
commit
df0a23f702
@ -232,6 +232,7 @@ else()
|
||||
# 3.1+ uses this generic method to enable c++11
|
||||
set (CMAKE_CXX_STANDARD 11)
|
||||
set (CXX_STANDARD_REQUIRED ON)
|
||||
set (CXX_EXTENSIONS OFF)
|
||||
endif()
|
||||
|
||||
include(CheckCCompilerFlag)
|
||||
@ -246,6 +247,7 @@ else()
|
||||
# 3.1+ uses this generic method to enable c11
|
||||
set (CMAKE_C_STANDARD 11)
|
||||
set (C_STANDARD_REQUIRED ON)
|
||||
set (C_EXTENSIONS OFF)
|
||||
endif()
|
||||
|
||||
# The doc target depends on each sensor target
|
||||
|
Loading…
x
Reference in New Issue
Block a user