On Wed, Jan 6, 2010 at 2:18 PM, Gregory Peele ARA/CFD <gpe...@ara.com>wrote:

>  Hey all,
>
>
>
> When tracking down why some custom linker flags weren't working right, I
> realized that CMAKE_EXE_LINKER flags (and its cousins for shared libraries)
> are not semicolon delimited lists but rather treat the flags as a single
> space-delimited string.  I also saw the closed bug report at
> http://public.kitware.com/Bug/view.php?id=7476 related to this issue.
>
>
>
> I have adjusted my CMakeLists to work correctly given this behavior, but
> I'm wondering why this is the case, as the variable is semantically a list
> of linker arguments and I would intuitively expect the LIST commands to work
> properly with it.  Is it because it eventually gets stored in a target
> property which does not support list values?
>
>
>
> Thanks,
>
> Gregory Peele, Jr.
>
> Applied Research Associates, Inc.
>


No special reason behind this quirk of behavior. It's just historical
remnants. Has to be kept the same for now for backwards compatibility.

If we were doing it over again, it would probably be a list.


HTH,
David
_______________________________________________
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

Reply via email to