[Cmake] space-separated compiler flags, cmake command line
Wheeler, Fred (Research)
wheeler at crd.ge.com
Wed Jun 12 10:47:07 EDT 2002
P.S. I'm using the CVS LatestRelease tag version of cmake.
Thanks,
Fred Wheeler
> -----Original Message-----
> From: Wheeler, Fred (Research)
> Sent: Wednesday, June 12, 2002 10:45 AM
> To: 'cmake at public.kitware.com'
> Subject: [Cmake] space-separated compiler flags, cmake command line
>
>
>
> When I pass options like these to cmake
>
> -DCMAKE_C_FLAGS:STRING="-02 -Wall -fprofile-arcs -ftest-coverage"
> -DCMAKE_CXX_FLAGS:STRING="-O2 -Wall -fprofile-arcs -ftest-coverage"
>
> I get escaped spaces in the cache file and makefiles,
>
> % grep test-coverage *
> [...]
> CMakeCache.txt:CMAKE_CXX_FLAGS:STRING=-O2\ -Wall\
> -fprofile-arcs\ -ftest-coverage
> CMakeCache.txt:CMAKE_C_FLAGS:STRING=-02\ -Wall\
> -fprofile-arcs\ -ftest-coverage
> Makefile:CMAKE_C_FLAGS = -02\ -Wall\ -fprofile-arcs\
> -ftest-coverage
> Makefile:CMAKE_CXX_FLAGS = -O2\ -Wall\ -fprofile-arcs\
> -ftest-coverage
> [...]
>
> Is there a way to pass a set of space-separated compiler
> flags to cmake via the command line?
>
> Thanks,
> Fred Wheeler
> _______________________________________________
> Cmake mailing list
> Cmake at public.kitware.com
> http://public.kitware.com/mailman/listinfo/cmake
>
More information about the CMake
mailing list