Skip to content

Commit

Permalink
[phast3] Fixed CMAKE_INSTALL_PREFIX for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
scharlton2 committed Jun 15, 2024
1 parent fa737d3 commit 99bde05
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@ set(PHAST_REVISION "9000")
# set default windows installation path
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT AND WIN32)
GetDefaultWindowsPrefixBase(CMAKE_GENERIC_PROGRAM_FILES)
set(CMAKE_INSTALL_PREFIX
"${CMAKE_GENERIC_PROGRAM_FILES}/USGS/${PROJECT_NAME}-"
"${PHAST_VERSION_MAJOR}.${PHAST_VERSION_MINOR}."
"${PHAST_VERSION_PATCH}-${PHAST_REVISION}"
set(W_PREFIX)
string(APPEND W_PREFIX "${CMAKE_GENERIC_PROGRAM_FILES}/USGS/${PROJECT_NAME}-")
string(APPEND W_PREFIX "${PHAST_VERSION_MAJOR}.${PHAST_VERSION_MINOR}.")
string(APPEND W_PREFIX "${PHAST_VERSION_PATCH}-${PHAST_REVISION}")
set(CMAKE_INSTALL_PREFIX ${W_PREFIX}
CACHE PATH "Install path prefix, prepended onto install directories."
FORCE)
endif()
Expand Down

0 comments on commit 99bde05

Please sign in to comment.