[CMake] Cross-compiling on OS X/x86 for Linux/ARM, linking a library
Hendrik Sattler
post at hendrik-sattler.de
Tue Oct 20 09:50:06 EDT 2009
Zitat von Vladimir Lebedev-Schmidthof <vlebedev at envionsoftware.com>:
> I tried having toochain.cmake file in the same dir as CMakeLists.txt
>
> using
> cmake -DCMAKE_TOOLCHAIN_FILE=./toolchain.cmake .
>
> does not seem to even read that file. I tried to state full path, move
> the file away, no luck.
Since you are doing an in-source build: did you make sure prior to
issuing the above command that you cleaned the source directory from
all cmake-generated files from previous runs (especially removing any
CMakeCache.txt files)?
HS
More information about the CMake
mailing list