[CMake] Using -DOPTION="something=moof" mangles the OPTION value to "something:UNINITIALIZED=moof"

Marcus Fritzsch fritschy at googlemail.com
Mon Aug 29 08:37:47 EDT 2011


Turns out, using the "verbose" form of the option definition
-DOPTION:TYPE=... does not exhibit the issue.

On 8/29/11, Marcus Fritzsch <fritschy at googlemail.com> wrote:
> I discovered this behavior on my ubuntu 11.04 amd64 workstation with
> cmake 2.8.3 when trying to set an -march= option for gcc:
>
>     cmake -DCMAKE_C_FLAGS="-Os -march=native -flto
> -freorder-blocks-and-partition" ....
>
> was mangled to be
>
>     CMAKE_C_FLAGS=-Os -march:UNINITIALIZED=native -flto
> -freorder-blocks-and-partition
>
> in the CMakeCache.txt.
>
> I haven't had much luck with the search engine of my choice finding
> anything on the issue.
>


More information about the CMake mailing list