Re: [CMake] @ONLY and nested variables

2014-09-29 Thread Nico Schlömer
All good suggestions; thanks! –Nico On Mon, Sep 29, 2014 at 12:41 PM, Ruslan Baratov wrote: > You can run configure_package_config_file twice with code: > > SET(@PACKAGE@_LIBS @@PACKAGE@_LIBRARIES@) > > Also you can use configure_file command to create one file and include it > with config file

Re: [CMake] @ONLY and nested variables

2014-09-29 Thread Ruslan Baratov via CMake
You can run configure_package_config_file twice with code: SET(@PACKAGE@_LIBS @@PACKAGE@_LIBRARIES@) Also you can use configure_file command to create one file and include it with config file that was made by configure_package_config_file: # CMakeLists.txt configure_file(FooVars.cmake.in FooV

[CMake] @ONLY and nested variables

2014-09-24 Thread Nico Schlömer
Hi all, I would like to use CONFIGURE_PACKAGE_CONFIG_FILE() [1] instead of CONFIGURE_FILE() for my export configurations. Unfortunately, it seems that CONFIGURE_PACKAGE_CONFIG_FILE() only supports the @ONLY syntax. I do use nested variables names in the export configuration, though, e.g., ``` SET(