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