No includes when cross compiling with cmake?
Richard Shaw
hobbes1069 at gmail.com
Mon May 13 19:25:38 UTC 2013
Ok, it looks like I got it a little backwards... It's not the -l... that's
missing, it's the -I...
Apparently mingw32-cmake creates a separate includes
file, includes_CXX.rsp, whereas the native cmake just puts them in the
flags.cmake file.
During compilation, it doesn't appear the contents of includes_CXX.rsp is
being substituted:
[ 12%] Building CXX object src/CMakeFiles/libctb.dir/fifo.cpp.obj
cd /home/build/mingw32-proj/libctb-0.16.cmake/build_mingw/src &&
/usr/bin/i686-w64-mingw32-g++ -DPIC -D_THREAD_SAFE -Dlibctb_EXPORTS -O2
-g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions
--param=ssp-buffer-size=4 -O3 -DNDEBUG
@CMakeFiles/libctb.dir/includes_CXX.rsp -MD -MP -fPIC -o
CMakeFiles/libctb.dir/fifo.cpp.obj -c
/home/build/mingw32-proj/libctb-0.16.cmake/src/fifo.cpp
/home/build/mingw32-proj/libctb-0.16.cmake/src/fifo.cpp:1:0: warning: -fPIC
ignored for target (all code is position independent) [enabled by default]
Any ideas?
Thanks,
Richard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/mingw/attachments/20130513/48dffb97/attachment.html>
More information about the mingw
mailing list