summaryrefslogtreecommitdiff
path: root/share/cmake-3.10/Modules/Platform/ARTOS-GNU-C.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'share/cmake-3.10/Modules/Platform/ARTOS-GNU-C.cmake')
-rw-r--r--share/cmake-3.10/Modules/Platform/ARTOS-GNU-C.cmake9
1 files changed, 9 insertions, 0 deletions
diff --git a/share/cmake-3.10/Modules/Platform/ARTOS-GNU-C.cmake b/share/cmake-3.10/Modules/Platform/ARTOS-GNU-C.cmake
new file mode 100644
index 0000000..fe8d782
--- /dev/null
+++ b/share/cmake-3.10/Modules/Platform/ARTOS-GNU-C.cmake
@@ -0,0 +1,9 @@
+# Define ARTOS to select proper behaviour and tell preprocessor to accept C++ style comments.
+string(APPEND CMAKE_C_FLAGS_INIT " -DARTOS -Xp -+")
+# ac doesn't support -g properly and doesn't support the normal gcc optimization options. Just use the defaults set by ac.
+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")
+# Most projects expect the stdio functions to be available.
+set(CMAKE_C_STANDARD_LIBRARIES_INIT "stdio.a")