[CMake] Problem with externalproject and configure options

ycollette.nospam at free.fr ycollette.nospam at free.fr
Mon Jun 10 10:32:27 EDT 2013


Hello,

I am trying to configure a dependency via externalproject.
One configure option needs several parameters and I've got an error during configuration.
Here is the ExternalProject Declaration:

  ExternalProject_Add(EP_Cbc
                      PREFIX ${EP_InstallDir}/Cbc
		      URL http://www.coin-or.org/download/source/Cbc/Cbc-${Cbc_version}.tgz
		      CONFIGURE_COMMAND ${CMAKE_COMMAND} -E chdir ${EP_InstallDir}/Cbc/src/EP_Cbc ./configure --prefix=${EP_InstallDir}/install --without-asl --with-xpr-incdir=${Xpress_root_dir}/include --with-xpr-lib="-lxprs -lxprl" --with-osixpr-incdir=${Xpress_root_dir}/include --with-osixpr-lib="-lxprs -lxprl" --with-xpress-incdir=${Xpress_root_dir}/include --with-xpress-lib="-lxprs -lxprl"
		      BUILD_COMMAND ${CMAKE_COMMAND} -E chdir ${EP_InstallDir}/Cbc/src/EP_Cbc make
		      INSTALL_COMMAND ${CMAKE_COMMAND} -E chdir ${EP_InstallDir}/Cbc/src/EP_Cbc make install
 		     )


The options is: --with-xpr-lib="-lxprs -lxprl".

The error I've got is:

configure: error: unrecognized option: -lxprs

Is there a way to tell external project that the space beetween -lxprs and -lxprl is related to the configure option and is not a real space ?

Best regards,

YC


More information about the CMake mailing list