sakra / cotire

CMake module to speed up builds.
MIT License
1.3k stars 143 forks source link

problems with cross compilation #90

Open nandra opened 8 years ago

nandra commented 8 years ago

Hi,

I'm trying to test cotire on my cmake based app. I added all necessary things as was described in manual. When I run compilation it seems to compile everything fine just fails when building Cxx precompiled header cotire/app_CXX_prefix.hxx.gch with: arm-linux-gnueabihf-g++ -march=armv7-a -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -mthumb-interwork : execv returned (No such file or directory)

cotire: error 1 precompiling cotire.cmake:1783

When compiling for PC it works fine. Any ideas? Many thanks.

sakra commented 8 years ago

Please attach a small sample project that lets me reproduce the problem.

filcuc commented 5 years ago

I've the same problem. it seems like the SDK sysroot /usr/include plus cross compiler include directories are not added to search path during compilation