Skip to content

Commit

Permalink
Refs #4754. Make that CPACK_SET_DESTDIR.
Browse files Browse the repository at this point in the history
  • Loading branch information
martyngigg committed Feb 7, 2012
1 parent a8dea67 commit 90a0ea8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Code/Mantid/Build/CMake/CPackLinuxSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ if ( ${UNIX_DIST} MATCHES "RedHatEnterprise" OR ${UNIX_DIST} MATCHES "Fedora")
set ( CPACK_RPM_PACKAGE_RELEASE "${CPACK_RPM_PACKAGE_RELEASE}.fc16" )
endif ( ${UNIX_CODENAME} MATCHES "Tikanga" )

# If CMAKE_SET_DESTDIR is ON then the Prefix doesn't get put in the spec file
if ( CMAKE_SET_DESTDIR )
# If CPACK_SET_DESTDIR is ON then the Prefix doesn't get put in the spec file
if( CPACK_SET_DESTDIR )
message ( "Adding \"Prefix:\" line to spec file manually when CPACK_SET_DESTDIR is set")
set( CPACK_RPM_SPEC_MORE_DEFINE "Prefix: ${CPACK_PACKAGING_INSTALL_PREFIX}" )
endif()

Expand Down

0 comments on commit 90a0ea8

Please sign in to comment.