[CMake] Simple question

Luca Cappa luca.cappa at i-medlab.com
Tue Jan 25 05:15:32 EST 2005


Well, i would like also to know if it is possible to set the value of a 
variable to the output of a command, i.e. how to put the output of 
"pkg-config --cflags --libs gtkmm" in the variable directly.

Many thanks,
Luca

Luca Cappa wrote:

> Hello,
> Is this the right way to add some values to a variable?
>
> SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} `pkg-config --cflags --libs 
> gtkmm`")
>
> Greetings,
> Luca
> _______________________________________________
> CMake mailing list
> CMake at www.cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>



More information about the CMake mailing list