Re: [CMake] RPM package and relocation

2017-05-10 Thread Domen Vrankar
> > > set(INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/ssp-suite) > > install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/ssp/" DESTINATION > ${INSTALL_DIR}) > Eric already covered this part - use relative paths instead ( no / at the beginning). > But I also need to execute a post script, which runs after ins

[CMake] CMAKE_VS_PLATFORM_TOOLSET with Ninja generator

2017-05-10 Thread Mourad Boufarguine
Hi, I am building a third party library (OpenSceneGraph) using ninja generator and Visual c++ compiler. Recently the build is failing because of the use of CMAKE_VS_PLATFORM_TOOLSET [*] to query the VS toolset used. This variable seems not to be set when using Ninja generator. My question is what

Re: [CMake] RPM package and relocation

2017-05-10 Thread Craig Scott
You probably need to show us the postinstall script for us to be able to see the problem. Also, in case you haven't found it already, the MaximumRPM manual may be helpful (although it seems you've already found the essentials and that document could be getting a bit dated by now): http://ftp.rpm.o

Re: [CMake] RPM package and relocation

2017-05-10 Thread Eric Noulard
2017-05-10 13:26 GMT+02:00 Kristian : > Hi, > > I am creating an RPM package, which on a standard installation should > install the file into /opt/ssp-suite directory. But I want to give the > user the opportunity, to install the package into another directory. > > I am doing this with these lines

[CMake] RPM package and relocation

2017-05-10 Thread Kristian
Hi, I am creating an RPM package, which on a standard installation should install the file into /opt/ssp-suite directory. But I want to give the user the opportunity, to install the package into another directory. I am doing this with these lines: > set(INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/ssp-su