diff options
author | Josh Blum <josh@joshknows.com> | 2011-04-18 17:17:32 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2011-04-18 17:17:32 -0700 |
commit | 46d0e64859cfabfc24ea04051fca624a185bff8b (patch) | |
tree | 9151f2795c955dfdbd4c138fa2038d7080572cda /host/Modules | |
parent | 905a681afd3b8d089a3dbfe7aa31bbcb5a020c05 (diff) | |
download | uhd-46d0e64859cfabfc24ea04051fca624a185bff8b.tar.gz uhd-46d0e64859cfabfc24ea04051fca624a185bff8b.tar.bz2 uhd-46d0e64859cfabfc24ea04051fca624a185bff8b.zip |
uhd: use UHD_PKG_DATA_PATH environment variable to override the one in constants
The installer sets UHD_PKG_DATA_PATH, we can can handle transplanted builds.
Diffstat (limited to 'host/Modules')
-rw-r--r-- | host/Modules/UHDPackage.cmake | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/host/Modules/UHDPackage.cmake b/host/Modules/UHDPackage.cmake index 1988c7f11..416d89998 100644 --- a/host/Modules/UHDPackage.cmake +++ b/host/Modules/UHDPackage.cmake @@ -144,5 +144,15 @@ SET(CPACK_RPM_PACKAGE_REQUIRES "boost-devel, libusb1") ######################################################################## SET(CPACK_NSIS_MODIFY_PATH ON) +SET(HLKM_ENV "\\\"SYSTEM\\\\CurrentControlSet\\\\Control\\\\Session Manager\\\\Environment\\\"") + +SET(CPACK_NSIS_EXTRA_INSTALL_COMMANDS " + WriteRegStr HKLM ${HLKM_ENV} \\\"UHD_PKG_DATA_PATH\\\" \\\"$INSTDIR\\\\share\\\\uhd\\\" +") + +SET(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS " + DeleteRegValue HKLM ${HLKM_ENV} \\\"UHD_PKG_DATA_PATH\\\" +") + ######################################################################## INCLUDE(CPack) #include after setting vars |