ARTOS-GNU-C.cmake 592 B

123456789
  1. # Define ARTOS to select proper behaviour and tell preprocessor to accept C++ style comments.
  2. string(APPEND CMAKE_C_FLAGS_INIT " -DARTOS -Xp -+")
  3. # ac doesn't support -g properly and doesn't support the normal gcc optimization options. Just use the defaults set by ac.
  4. string(APPEND CMAKE_C_FLAGS_DEBUG_INIT " ")
  5. string(APPEND CMAKE_C_FLAGS_MINSIZEREL_INIT " -DNDEBUG")
  6. string(APPEND CMAKE_C_FLAGS_RELEASE_INIT " -DNDEBUG")
  7. string(APPEND CMAKE_C_FLAGS_RELWITHDEBINFO_INIT " -DNDEBUG")
  8. # Most projects expect the stdio functions to be available.
  9. set(CMAKE_C_STANDARD_LIBRARIES_INIT "stdio.a")