1 # This file is included by cmGlobalGenerator::EnableLanguage.
2 # It is included after the compiler has been determined, so
3 # we know things like the compiler name and if the compiler is gnu.
5 # include Generic system information
6 INCLUDE(CMakeGenericSystem)
8 # 2. now include SystemName.cmake file to set the system specific information
9 SET(CMAKE_SYSTEM_INFO_FILE ${CMAKE_ROOT}/Modules/Platform/${CMAKE_SYSTEM_NAME}.cmake)
10 IF(EXISTS ${CMAKE_SYSTEM_INFO_FILE})
11 INCLUDE(Platform/${CMAKE_SYSTEM_NAME} OPTIONAL)
12 ELSE(EXISTS ${CMAKE_SYSTEM_INFO_FILE})
13 MESSAGE("System is unknown to cmake, create:\n${CMAKE_SYSTEM_INFO_FILE}"
14 " to use this system, please send your config file to "
15 "cmake@www.cmake.org so it can be added to cmake")
16 IF(EXISTS ${CMAKE_BINARY_DIR}/CMakeCache.txt)
17 CONFIGURE_FILE(${CMAKE_BINARY_DIR}/CMakeCache.txt
18 ${CMAKE_BINARY_DIR}/CopyOfCMakeCache.txt COPYONLY)
19 MESSAGE("You CMakeCache.txt file was copied to CopyOfCMakeCache.txt. "
20 "Please send that file to cmake@www.cmake.org.")
21 ENDIF(EXISTS ${CMAKE_BINARY_DIR}/CMakeCache.txt)
22 ENDIF(EXISTS ${CMAKE_SYSTEM_INFO_FILE})
25 # for most systems a module is the same as a shared library
26 # so unless the variable CMAKE_MODULE_EXISTS is set just
27 # copy the values from the LIBRARY variables
28 # this has to be done after the system information has been loaded
29 IF(NOT CMAKE_MODULE_EXISTS)
30 SET(CMAKE_SHARED_MODULE_PREFIX ${CMAKE_SHARED_LIBRARY_PREFIX})
31 SET(CMAKE_SHARED_MODULE_SUFFIX ${CMAKE_SHARED_LIBRARY_SUFFIX})
32 SET(CMAKE_SHARED_MODULE_LINK_C_FLAGS ${CMAKE_SHARED_LIBRARY_LINK_C_FLAGS})
33 SET(CMAKE_SHARED_MODULE_RUNTIME_C_FLAG ${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG})
34 SET(CMAKE_SHARED_MODULE_RUNTIME_C_FLAG_SEP ${CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP})
35 ENDIF(NOT CMAKE_MODULE_EXISTS)
38 SET(CMAKE_SYSTEM_SPECIFIC_INFORMATION_LOADED 1)