diff options
author | Brad King <brad.king@kitware.com> | 2011-11-29 20:17:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-12-05 21:35:42 (GMT) |
commit | a603250a132d3a38428b6c3e2f425c1a0b2c3878 (patch) | |
tree | 13f2cb75cfd2c3a2260966134ad1ea581a19d508 /Modules/CMakeCInformation.cmake | |
parent | ecd8414757368f45152f6e3e4841a5b3715fa2d3 (diff) | |
download | CMake-a603250a132d3a38428b6c3e2f425c1a0b2c3878.zip CMake-a603250a132d3a38428b6c3e2f425c1a0b2c3878.tar.gz CMake-a603250a132d3a38428b6c3e2f425c1a0b2c3878.tar.bz2 |
Load platform files that need to know the ABI when possible
Load platform files named in CMAKE_<lang>_ABI_FILES for each language
once the ABI sizeof(void*) is known. During the first configuration
this is after the test for working compiler and ABI detection checks.
During later configurations the ABI information is immediately available
because it has been saved in CMake<lang>Compiler.cmake.
Diffstat (limited to 'Modules/CMakeCInformation.cmake')
-rw-r--r-- | Modules/CMakeCInformation.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/CMakeCInformation.cmake b/Modules/CMakeCInformation.cmake index 9285fef..6b5efba 100644 --- a/Modules/CMakeCInformation.cmake +++ b/Modules/CMakeCInformation.cmake @@ -68,6 +68,12 @@ IF (NOT _INCLUDED_FILE) INCLUDE(Platform/${CMAKE_SYSTEM_NAME} OPTIONAL) ENDIF (NOT _INCLUDED_FILE) +IF(CMAKE_C_SIZEOF_DATA_PTR) + FOREACH(f ${CMAKE_C_ABI_FILES}) + INCLUDE(${f}) + ENDFOREACH() + UNSET(CMAKE_C_ABI_FILES) +ENDIF() # This should be included before the _INIT variables are # used to initialize the cache. Since the rule variables |