[CMake] Variable target name visible at the top level

Vyacheslav Karamov ubuntulist at yandex.ru
Fri Oct 26 05:23:03 EDT 2012


Thank you, but if I need variable two level up?

26.10.2012 12:07, Rolf Eike Beer пишет:
> On Fr., 26. Okt. 2012 10:22:51 CEST, Vyacheslav Karamov <ubuntulist at yandex.ru> wrote:
>
>> Hi All!
>>
>> I have project with the structure similar to this
>> set (snd_lib "sndlib")
>> add_library(${snd_lib} SHARED ...)
>> How to handle this situation in a proper way?
> set(... PARENT_SCOPE)
>
> This will propagate the variable one level up.
>
> Eike



More information about the CMake mailing list