[prev in list] [next in list] [prev in thread] [next in thread]
List: cmake
Subject: Re: [CMake] cpack -G NSIS
From: Andrea Crotti <andrea.crotti.0 () gmail ! com>
Date: 2012-01-18 16:38:01
Message-ID: 4F16F569.50202 () gmail ! com
[Download RAW message or body]
Thanks for the feedback,
however I tried again with another cmake file, which should actually do
something.
What I would like to do is to:
- get the project name and a list of packages (just directories) to install
- install them somewhere (now the destination is not set correctly).
Should this work in general?
cmake_minimum_required(VERSION 2.6)
#TODO: should take from the python environment
# setting variables from some known build generated files
# probably we can also pass options directly to CMake
file(STRINGS project_name.txt project_name)
file(STRINGS package_list.txt packages)
project(${project_name})
# include can be used to add more configurations??
# # install all the given automatically
install(
DIRECTORY ${packages}
DESTINATION test_ddest
)
#TODO: how do I get the correct destination for windows?
# now the packages variable should contain something
# this include all the necessary
include(CPack)
But I still get the same error using NSIS (works with TGZ):
CPack: /build/src/cmake-2.8.7/Source/CPack/cpack.cxx:211 Enable Debug
/build/src/cmake-2.8.7/Source/CPack/cmCPackGenerator.cxx:1162 Looking
for CMAKE_ROOT: /usr/share/cmake-2.8
/build/src/cmake-2.8.7/Source/CPack/cmCPackGenerator.cxx:941
cmCPackNSISGenerator::SetOption(CMAKE_ROOT, /usr/share/cmake-2.8)
/build/src/cmake-2.8.7/Source/CPack/cmCPackGenerator.cxx:941
cmCPackNSISGenerator::SetOption(CPACK_GENERATOR, NSIS)
/build/src/cmake-2.8.7/Source/CPack/cmCPackGenerator.cxx:1145 Warning,
GetOption return NULL for: CPACK_PROJECT_CONFIG_FILE
/build/src/cmake-2.8.7/Source/CPack/cmCPackGenerator.cxx:1145 Warning,
GetOption return NULL for: CPACK_INCLUDE_TOPLEVEL_DIRECTORY
/build/src/cmake-2.8.7/Source/CPack/cmCPackNSISGenerator.cxx:355
cmCPackNSISGenerator::Initialize()
/build/src/cmake-2.8.7/Source/CPack/cmCPackGenerator.cxx:1145 Warning,
GetOption return NULL for: CPACK_TOPLEVEL_DIRECTORY
terminate called after throwing an instance of 'std::logic_error'
what(): basic_string::_S_construct null not valid
aborted
--
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic