Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Converted CMAKE_INSTALL_PREFIX to be a cache variable so that it gets…
Browse files Browse the repository at this point in the history
… set properly via flags
  • Loading branch information
MintoDA1 authored and MintoDA1 committed Sep 15, 2023
1 parent 4fad1a0 commit e0dcf9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ SET(PY "${CMAKE_SOURCE_DIR}/swiftest")
IF(WIN32)
SET(CMAKE_INSTALL_PREFIX "C:\\Program Files\\swiftest")
FILE(TO_CMAKE_PATH ${CMAKE_INSTALL_PREFIX} CMAKE_INSTALL_PREFIX)
SET(CMAKE_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} CACHE PATH "Path for install")
ELSE()
SET(CMAKE_INSTALL_PREFIX /usr/local)
SET(CMAKE_INSTALL_PREFIX /usr/local CACHE PATH "Path for install")
ENDIF(WIN32)

# Make sure paths are correct for Unix or Windows style
Expand Down

0 comments on commit e0dcf9b

Please sign in to comment.