diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-06-11 19:31:42 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-06-11 19:31:42 (GMT) |
commit | 422dc631b62edd22be89dfd665ecaede39c4e283 (patch) | |
tree | 078369e37d271cb224272895f914de230839116f /Modules/CMakeCInformation.cmake | |
parent | 1a71290836bc3f962e66d9b9c55281e0fd118b8b (diff) | |
download | CMake-422dc631b62edd22be89dfd665ecaede39c4e283.zip CMake-422dc631b62edd22be89dfd665ecaede39c4e283.tar.gz CMake-422dc631b62edd22be89dfd665ecaede39c4e283.tar.bz2 |
ENH: split cmGlobalGenerator::SetLanguageEnabled() in two parts, where the
second part copies the values from the cmake variables into internal maps.
So this can now be done after the compiler-specific information has been
loaded, which can now overwrite more settings.
Alex
Diffstat (limited to 'Modules/CMakeCInformation.cmake')
-rw-r--r-- | Modules/CMakeCInformation.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Modules/CMakeCInformation.cmake b/Modules/CMakeCInformation.cmake index 9e0dda2..1908b40 100644 --- a/Modules/CMakeCInformation.cmake +++ b/Modules/CMakeCInformation.cmake @@ -5,6 +5,14 @@ # It also loads a system - compiler - processor (or target hardware) # specific file, which is mainly useful for crosscompiling and embedded systems. +# some compilers use different extensions (e.g. sdcc uses .rel) +# so set the extension here first so it can be overridden by the compiler specific file +IF(UNIX) + SET(CMAKE_C_OUTPUT_EXTENSION .o) +ELSE(UNIX) + SET(CMAKE_C_OUTPUT_EXTENSION .obj) +ENDIF(UNIX) + GET_FILENAME_COMPONENT(CMAKE_BASE_NAME ${CMAKE_C_COMPILER} NAME_WE) IF(CMAKE_COMPILER_IS_GNUCC) SET(CMAKE_BASE_NAME gcc) |