On Wed, Apr 8, 2009 at 2:27 PM, Piotr Dobrogost
<[email protected]> wrote:
> Hi
>
> Am I missing something or there is no operator for easy string
> concatenation in cmake?
>
> Instead of writing
>
> SET(CMAKE_MODULE_PATH
> "${CMAKE_CURRENT_SOURCE_DIR}/CMake;${CMAKE_MODULE_PATH}")
>
> it would be nice to be able to write
>
> CMAKE_MODULE_PATH += "${CMAKE_CURRENT_SOURCE_DIR}/CMake;"
>
> or at least
>
> SET(CMAKE_MODULE_PATH += "${CMAKE_CURRENT_SOURCE_DIR}/CMake;")
>
> "+=" would mean to prepend to and "=+" to append to existing string.
>

I guess its a matter of preference. I prefer the first/working example.

John
_______________________________________________
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