[Cmake-commits] CMake branch, next, updated. v3.3.1-2251-g9fe5cfd

Brad King brad.king at kitware.com
Mon Aug 17 10:33:37 EDT 2015


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  9fe5cfd082e84c09aa63aea6aff4bad407e22033 (commit)
       via  462fbd1ecac6968f6c0695737c8e432c9660121c (commit)
      from  4bec7bd580c9d127ce08172cd5ae0b36a585725a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9fe5cfd082e84c09aa63aea6aff4bad407e22033
commit 9fe5cfd082e84c09aa63aea6aff4bad407e22033
Merge: 4bec7bd 462fbd1
Author:     Brad King <brad.king at kitware.com>
AuthorDate: Mon Aug 17 10:33:36 2015 -0400
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Mon Aug 17 10:33:36 2015 -0400

    Merge topic 'add-ARTOS-platform-module' into next
    
    462fbd1e Add support for ARTOS platform using GNU C with ac compiler driver


http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=462fbd1ecac6968f6c0695737c8e432c9660121c
commit 462fbd1ecac6968f6c0695737c8e432c9660121c
Author:     Kars de Jong <kars.dejong at locamation.nl>
AuthorDate: Thu Aug 13 13:37:53 2015 +0200
Commit:     Brad King <brad.king at kitware.com>
CommitDate: Mon Aug 17 10:32:50 2015 -0400

    Add support for ARTOS platform using GNU C with ac compiler driver
    
    Add platform and compiler descriptions for ARTOS RTOS (locamation.com).
    
    Signed-off-by: Kars de Jong <kars.dejong at locamation.nl>

diff --git a/Modules/Platform/ARTOS-GNU-C.cmake b/Modules/Platform/ARTOS-GNU-C.cmake
new file mode 100644
index 0000000..967d0e7
--- /dev/null
+++ b/Modules/Platform/ARTOS-GNU-C.cmake
@@ -0,0 +1,9 @@
+# Define ARTOS to select proper behaviour and tell preprocessor to accept C++ style comments.
+set(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.
+set(CMAKE_C_FLAGS_DEBUG_INIT "")
+set(CMAKE_C_FLAGS_MINSIZEREL_INIT "-DNDEBUG")
+set(CMAKE_C_FLAGS_RELEASE_INIT "-DNDEBUG")
+set(CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-DNDEBUG")
+# Most projects expect the stdio functions to be available.
+set(CMAKE_C_STANDARD_LIBRARIES_INIT "stdio.a")
diff --git a/Modules/Platform/ARTOS.cmake b/Modules/Platform/ARTOS.cmake
new file mode 100644
index 0000000..f9365d6
--- /dev/null
+++ b/Modules/Platform/ARTOS.cmake
@@ -0,0 +1,17 @@
+# Support for ARTOS RTOS (locamation.com)
+set(CMAKE_LINK_LIBRARY_SUFFIX "")
+set(CMAKE_STATIC_LIBRARY_PREFIX "")
+set(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
+set(CMAKE_SHARED_LIBRARY_PREFIX "")
+set(CMAKE_SHARED_LIBRARY_SUFFIX ".a")
+set(CMAKE_EXECUTABLE_SUFFIX ".x")
+set(CMAKE_DL_LIBS "")
+
+set(CMAKE_FIND_LIBRARY_PREFIXES "")
+set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
+
+# ARTOS does not support shared libs
+set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE)
+
+set(CMAKE_C_LINK_SHARED_LIBRARY )
+set(CMAKE_C_LINK_MODULE_LIBRARY )

-----------------------------------------------------------------------

Summary of changes:
 Modules/Platform/ARTOS-GNU-C.cmake |    9 +++++++++
 Modules/Platform/ARTOS.cmake       |   17 +++++++++++++++++
 2 files changed, 26 insertions(+)
 create mode 100644 Modules/Platform/ARTOS-GNU-C.cmake
 create mode 100644 Modules/Platform/ARTOS.cmake


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list