[CMake] CONFIGURE_FILE list substitutions

Thomas Sondergaard ts_news1 at sondergaard.cc
Thu Nov 1 09:08:18 EDT 2007


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



More information about the CMake mailing list