[CMake] CMake 2.8.2 with WindRiver diab compiler dcc.exe/dplus.exe on WinXP: CMake Error: Could not COPY_FILE. while detecting compiler ABI
Brad King
brad.king at kitware.com
Mon Sep 20 09:06:14 EDT 2010
On 09/20/2010 04:45 AM, Molsen, Hannes wrote:
> Therefore I don't have a CMAKE_EXECUTABLE_SUFFIX set, because actually I do not build executables at all.
> The real project consists of libraries as "libFramework.a".
> The builds of the CMake test files stop after assembly, only object files are generated.
> Is this maybe the problem? Does CMake need to have an executable to detect the compiler ABI?
Yes.
> How could that ever work for cross compiling?
CMake links a test executable but never runs it. It parses information
right out of the binary.
> Then I would have to set the ABI always in the toolchain file.
If the toolchain can't create executables then this information needs
to be set in the toolchain file. This is the purpose of the
CMAKE_C_COMPILER_FORCED setting: tell CMake that the toolchain file
takes care of this information.
-Brad
More information about the CMake
mailing list