Did you try to set this up in your CMakeLists.txt?
Either something like (for CMake 2.8.12):
set(CPACK_WIX_TEMPLATE "${CMAKE_CURRENT_SOURCE_DIR}/mywix.template.in")
Or:
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
before include(CPack) should work and would expand to full paths in the
generated CPackConfig.cmake.
I don't think CMAKE_CURRENT_SOURCE_DIR is available in CPack for expansion.
Nils
On 17.10.2013 18:11, Evan Zhang wrote:
Hi,
I am attempting to set the CPack Module Path to point to a different
directory when using the WiX generator so that I may use a customized
WiX.template.in configuration file. I am doing this by adding the
following line into my CPackConfig.cmake file before calling cpack
through the command line :
SET(CPACK_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}" ${CMAKE_MODULE_PATH})
I have also tried setting the "CMAKE_MODULE_PATH" variable, but
neither of these seem to affect the actual WiX.template.in being used
as it is still picking up the one from the Modules directory of the
Cmake install directory.
Thanks in advance for your help!
Evan
--
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://www.cmake.org/mailman/listinfo/cmake
--
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://www.cmake.org/mailman/listinfo/cmake