On 2015-11-11 11:04-0800 Rob McDonald wrote:
Right now, the Main ExternalProject_add INSTALL_COMMAND is "". How
can I change this (or add another step) to build the package target (I
don't want to just hard-code make package, as it should work with MSVC
too). I've tried things like '${CMAKE_COMMAND} cmake--build package'
but haven't had any luck.
Hi Rob:
Here is what I suggest you use:
INSTALL_COMMAND ${INSTALL_COMMAND}
where for the Unix-like case (Linux, Mac OS X, Cygwin,
MinGW-w64/MSYS2, etc) I recommend you set the INSTALL_COMMAND variable to
something like
${ENV_EXECUTABLE} PATH=${EPA_PATH} ${EPA_PARALLEL_BUILD_COMMAND} install
where ENV_EXECUTABLE is the Unix env command, PATH is set
appropriately for that command, and EPA_PARALLEL_BUILD_COMMAND is
typically "make -j4". Of course, this logic is currently only suitable for
the Unix case, but once I extend my own epa_build project to use MSVC, I
plan to set the INSTALL_COMMAND variable to whatever is appropriate
("nmake install"?) for that case.
Hope these ideas help.
Alan
__________________________
Alan W. Irwin
Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).
Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________
Linux-powered Science
__________________________
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake