[CMake] find_package(Threads) leads to CMake Error: TRY_RUN() invoked in cross-compiling mode
Steffen Dettmer
steffen.dettmer at gmail.com
Thu Aug 3 12:07:13 EDT 2017
a small correction:
On Thu, Aug 3, 2017 at 5:59 PM, Steffen Dettmer
<steffen.dettmer at gmail.com> wrote:
> Building C object CMakeFiles/cmTC_47cd8.dir/CheckForPthreads.c.o
> /opt/xyzcross/x86-linux2/bin/powerpc-linux-gnu-gcc --sysroot=...
> -o CMakeFiles/cmTC_47cd8.dir/CheckForPthreads.c.o -c
> /usr/local/share/cmake-3.6/Modules/CheckForPthreads.c
>
> If I copy the mentioned gcc command to a shell and change only
> the file name (CheckForPthreads does not exist anymore
Ohh, of course the .c file still exists, just the directory for
the .o file had been removed. When I create it, the compile and
link commands from the ErrorLog both work fine.
Steffen
More information about the CMake
mailing list