[CMake] CONFIGURE_FILE list substitutions

David Cole david.cole at kitware.com
Thu Nov 1 09:58:18 EDT 2007


SET(PKG_DEPS "boost libxml")

...makes PKG_DEPS a single string with spaces in it...


On 11/1/07, Thomas Sondergaard <ts_news1 at sondergaard.cc> wrote:
> Hello,
>
> My package has a <package>.pc.in pkg-config template that is used to
> create <package>.pc using CONFIGURE_FILE. In the pc.in file I have this
> line:
>
> Requires: @PKG_DEPS@
>
> and in my CMakeLists.txt I have
>
> SET(PGK_DEPS boost libxml)
>
> The problem is that the output becomes "Requires: boost;libxml" and I
> want the list space-separated not semi-colon separated. How can I fix this?
>
> Regards,
>
> Thomas
>
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list