2021-09-14 00:13:48 +02:00
|
|
|
# Define ARTOS to select proper behavior and tell preprocessor to accept C++ style comments.
|
2016-10-30 18:24:19 +01:00
|
|
|
string(APPEND CMAKE_C_FLAGS_INIT " -DARTOS -Xp -+")
|
2015-11-17 17:22:37 +01:00
|
|
|
# ac doesn't support -g properly and doesn't support the normal gcc optimization options. Just use the defaults set by ac.
|
2016-10-30 18:24:19 +01:00
|
|
|
string(APPEND CMAKE_C_FLAGS_DEBUG_INIT " ")
|
|
|
|
string(APPEND CMAKE_C_FLAGS_MINSIZEREL_INIT " -DNDEBUG")
|
|
|
|
string(APPEND CMAKE_C_FLAGS_RELEASE_INIT " -DNDEBUG")
|
|
|
|
string(APPEND CMAKE_C_FLAGS_RELWITHDEBINFO_INIT " -DNDEBUG")
|
2015-11-17 17:22:37 +01:00
|
|
|
# Most projects expect the stdio functions to be available.
|
|
|
|
set(CMAKE_C_STANDARD_LIBRARIES_INIT "stdio.a")
|