On 27/11/15 13:14, Richard Shaw wrote: > Interesting, while I found many references to it using google, I'm not > familiar with INSTALLD but what I did find I don't think that's what you > want to use with DESTDIR. > > DESTDIR is to basically relocate where a package is installed for > packaging purposes so a non-root user can do the install. The path in > destdir would not be included in any RPATHs in libraries or anywhere > else where the path is important. I think you're looking for > CMAKE_INSTALL_PREFIX which you would pass to cmake, i.e.: > > cmake -DCMAKE_INSTALL_PREFIX=$INSTALLD > > Thanks, > Richard > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > wsjt-devel mailing list > wsjt-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wsjt-devel > Hi Richard, We meet again ;) INSTALLD is just a variable name in Greg's script which does use CMAKE_INSTALL_PREFIX - see the extract below:
-----------snip----------- # set install locaiton if [ $SEPARATE == "Yes" ] ; then INSTALLD="$PREFIXD/$APP_NAME/$VERSION/$WSJTXV" else INSTALLD="$PREFIXD/$APP_NAME/$VERSION" fi # Configure the build cmake -Wno-dev -D CMAKE_INSTALL_PREFIX="$INSTALLD" "$SRCD" # Compile and Install the Release Target echo '' echo "-------------------------------------------" echo -e ${C_Y} "COMPILING WSJTX v$VERSION r$WSJTXV"${C_NC} echo "-------------------------------------------" echo '' cd $BUILDD export DESTDIR=$INSTALLD cmake --build . --target install -- -j "$JJ" ---------snip---------- Adding the export... stopped the install path defaulting to /usr/local/bin. I have had similar issues with other packages using CMake recently with rpm specs and had to pass DESTDIR at the make install stage as otherwise CMAKE_INSTALL_PREFIX has been ignored, so I was guessing that it may be a CMake bug. Barry ------------------------------------------------------------------------------ _______________________________________________ wsjt-devel mailing list wsjt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wsjt-devel