2015-08-13 14:37:53 +03:00
|
|
|
# Define ARTOS to select proper behaviour and tell preprocessor to accept C++ style comments.
|
2016-07-05 20:35:13 +03:00
|
|
|
string(APPEND CMAKE_C_FLAGS_INIT " -DARTOS -Xp -+")
|
2015-08-13 14:37:53 +03:00
|
|
|
# ac doesn't support -g properly and doesn't support the normal gcc optimization options. Just use the defaults set by ac.
|
2016-07-05 20:35:13 +03: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-08-13 14:37:53 +03:00
|
|
|
# Most projects expect the stdio functions to be available.
|
|
|
|
set(CMAKE_C_STANDARD_LIBRARIES_INIT "stdio.a")
|