mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 14:20:06 -06:00
Compiler/TI: Fix definition of std options
- The compile option variable has to be defined as list. - The compiler works in relaxed ANSI mode by default. Strict ANSI has to be explicitly set additionally to the language standard.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
include(Compiler/TI)
|
||||
__compiler_ti(C)
|
||||
|
||||
set(CMAKE_C90_STANDARD_COMPILE_OPTION "--c89")
|
||||
set(CMAKE_C90_EXTENSION_COMPILE_OPTION "--c89 --relaxed_ansi")
|
||||
set(CMAKE_C90_STANDARD_COMPILE_OPTION "--c89" "--strict_ansi")
|
||||
set(CMAKE_C90_EXTENSION_COMPILE_OPTION "--c89" "--relaxed_ansi")
|
||||
|
||||
set(CMAKE_C99_STANDARD_COMPILE_OPTION "--c99")
|
||||
set(CMAKE_C99_EXTENSION_COMPILE_OPTION "--c99 --relaxed_ansi")
|
||||
set(CMAKE_C99_STANDARD_COMPILE_OPTION "--c99" "--strict_ansi")
|
||||
set(CMAKE_C99_EXTENSION_COMPILE_OPTION "--c99" "--relaxed_ansi")
|
||||
|
||||
Reference in New Issue
Block a user