diff options
author | Alexander Neundorf <neundorf@kde.org> | 2007-06-04 21:08:46 (GMT) |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2007-06-04 21:08:46 (GMT) |
commit | 74750610cf29e5c0b92feb1f7b8c030e1f0e8448 (patch) | |
tree | bb1e7eedaf39b41cb4de3545a521eaa325d22689 /Source/cmLocalGenerator.cxx | |
parent | e40c51dddf7428d25543c0f05d6a6cc16454c97f (diff) | |
download | CMake-74750610cf29e5c0b92feb1f7b8c030e1f0e8448.zip CMake-74750610cf29e5c0b92feb1f7b8c030e1f0e8448.tar.gz CMake-74750610cf29e5c0b92feb1f7b8c030e1f0e8448.tar.bz2 |
ENH: determine typesize by compiling a file and reading strings from the compiled output.
Tested with various gcc, XCode, MSVC7, sdcc
For OSX when doing TRY_COMPILE() CMAKE_OSX_ARCHITECTURES is used, if there are different results an error is generated. CMAKE_OSX_ARCHITECTURES can be overwritten for the TRY_COMPILES with CMAKE_TRY_COMPILE_OSX_ARCHITECTURES.
Alex
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index f831282..8f2bcca 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1927,7 +1927,8 @@ void cmLocalGenerator::AddLanguageFlags(std::string& flags, std::vector<std::string> archs; cmSystemTools::ExpandListArgument(std::string(osxArch), archs); - if(archs.size() > 1) + if((archs.size() > 1) + || ((archs.size()== 1) && this->Makefile->IsOn("CMAKE_DO_TRY_COMPILE"))) { for( std::vector<std::string>::iterator i = archs.begin(); i != archs.end(); ++i) |