>
> 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.


Hmm.. Well projects can choose to ignore CMAKE_INSTALL_PREFIX (either
intentionally, some projects specify their own prefix variable, or
accidentally.) I don't think it's a bug, per se.

I don't use the shell script, I just use the superbuild script directly.

$ cmake -DWSJTX_TAG=tags/wsjtx-1.6.0-rc1 ~/svn/wsjtx-superbuild
$ make source

Then copy the resulting archive into the SOURCES dir for rpm packaging.

It probably has some Fedora specific stuff in it but here's the SRPM if you
want to check it out:

https://dl.dropboxusercontent.com/u/34775202/wsjtx-1.6.0-0.1.rc1.fc22.src.rpm

Thanks,
Richard
KF5OIM
------------------------------------------------------------------------------
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel

Reply via email to