summaryrefslogtreecommitdiff
path: root/share/cmake-3.2/Modules/Platform/Generic.cmake
diff options
context:
space:
mode:
authorVince Harron <vharron@google.com>2015-06-07 09:09:30 -0700
committerVince Harron <vharron@google.com>2015-06-07 09:09:30 -0700
commit914b51e050040486de9d262bf1d846dcc56581f6 (patch)
tree49fc27f320dcc7121654e7b7c9b7d01f1f27a5e5 /share/cmake-3.2/Modules/Platform/Generic.cmake
parent090b1d0343da3327b49041a535778a1c121a2226 (diff)
downloadwindows-x86-914b51e050040486de9d262bf1d846dcc56581f6.tar.gz
Diffstat (limited to 'share/cmake-3.2/Modules/Platform/Generic.cmake')
-rwxr-xr-xshare/cmake-3.2/Modules/Platform/Generic.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/share/cmake-3.2/Modules/Platform/Generic.cmake b/share/cmake-3.2/Modules/Platform/Generic.cmake
new file mode 100755
index 0000000..fcb2699
--- /dev/null
+++ b/share/cmake-3.2/Modules/Platform/Generic.cmake
@@ -0,0 +1,17 @@
+# This is a platform definition file for platforms without
+# operating system, typically embedded platforms.
+# It is used when CMAKE_SYSTEM_NAME is set to "Generic"
+#
+# It is intentionally empty, since nothing is known
+# about the platform. So everything has to be specified
+# in the system/compiler files ${CMAKE_SYSTEM_NAME}-<compiler_basename>.cmake
+# and/or ${CMAKE_SYSTEM_NAME}-<compiler_basename>-${CMAKE_SYSTEM_PROCESSOR}.cmake
+
+# (embedded) targets without operating system usually don't support shared libraries
+set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE)
+
+# To help the find_xxx() commands, set at least the following so CMAKE_FIND_ROOT_PATH
+# works at least for some simple cases:
+set(CMAKE_SYSTEM_INCLUDE_PATH /include )
+set(CMAKE_SYSTEM_LIBRARY_PATH /lib )
+set(CMAKE_SYSTEM_PROGRAM_PATH /bin )