Looks to me like somebody quoted a ${CMAKE_CXX_FLAGS} reference where they should not have quoted it...<div><br></div><div>What does the CMakeLists.txt file look like?</div><div><br><br><div class="gmail_quote">On Wed, Oct 6, 2010 at 11:02 AM, <span dir="ltr"><<a href="mailto:fatman@crackmonkey.us">fatman@crackmonkey.us</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Hi list,<br>
<br>
Found some odd behaviour while setting up CMake on Windows XP. I've<br>
tried to correct the word-wrapping cmd.exe does, not always<br>
successfully; I hope you can read this:<br>
<br>
C:\Users\buildbot\Reu2\bin\bga120\build\Reu2\cmake>rm -r *<br>
<br>
C:\Users\buildbot\Reu2\bin\bga120\build\Reu2\cmake>cmake ..<br>
-DCMAKE_BUILD_TYPE=Debug -G "MinGW Makefiles"<br>
-- The C compiler identification is GNU<br>
-- The CXX compiler identification is GNU<br>
-- Check for working C compiler: C:/Programs/MinGW/bin/gcc.exe<br>
-- Check for working C compiler: C:/Programs/MinGW/bin/gcc.exe -- works<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- Check for working CXX compiler: C:/Programs/MinGW/bin/g++.exe<br>
-- Check for working CXX compiler: C:/Programs/MinGW/bin/g++.exe -- works<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
-- Boost version: 1.40.0<br>
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use<br>
FindPkgConfig<br>
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use<br>
FindPkgConfig<br>
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use<br>
FindPkgConfig<br>
-- WARNING: you are using the obsolete 'PKGCONFIG' macro use<br>
FindPkgConfig<br>
-- Configuring done<br>
-- Generating done<br>
-- Build files have been written to:<br>
C:/Users/buildbot/Reu2/bin/bga120/build/Reu2/cmake<br>
<br>
C:\Users\buildbot\Reu2\bin\bga120\build\Reu2\cmake>make<br>
Scanning dependencies of target SmallTestLib<br>
[ 2%] Building CXX object<br>
SmallTestLib/CMakeFiles/SmallTestLib.dir/src/SmallTestLib.cc.obj<br>
cc1plus.exe: error: unrecognized command line option<br>
"-Wwrite-strings;-std=c++0x;-pedantic-errors;-pedantic;-Wall;-W;-Weffc++;-Wmain;-Wextra;-DBUILD_DLL"<br>
cc1plus.exe: warning: unrecognized command line option<br>
"-Wno-long-long;-Wno-comment;-g;-gdwarf-2"<br>
make[2]: ***<br>
[SmallTestLib/CMakeFiles/SmallTestLib.dir/src/SmallTestLib.cc.obj]<br>
Error 1<br>
make[1]: *** [SmallTestLib/CMakeFiles/SmallTestLib.dir/all] Error 2<br>
make: *** [all] Error 2<br>
<br>
C:\Users\buildbot\Reu2\bin\bga120\build\Reu2\cmake><br>
<br>
It's the line beginning cc1plus.exe that confuses me. Why are the<br>
command line arguments separated by semicolons? It should be spaces.<br>
I've looked in the generated Makefile and CMakeCache.txt but I can't<br>
figure it out. This MinGW installation has been installed and working<br>
for a little while now, so I don't think it's a MinGW problem.<br>
<br>
Regards,<br>
Adam J Richardson<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>