diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-18 12:22:44 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-01-18 12:22:44 +0100 |
commit | 682eaa51a76605c028a844acb1cfe7dbfa0ab945 (patch) | |
tree | c5cd440477340d0507deecff1b5e08b1f73b3fb4 /cmake/opentrack-platform.cmake | |
parent | a7a60c8f5328d8d1b6dbb2d73635ab64aa480d41 (diff) |
cmake: fix setting default install prefix on startup
Diffstat (limited to 'cmake/opentrack-platform.cmake')
-rw-r--r-- | cmake/opentrack-platform.cmake | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cmake/opentrack-platform.cmake b/cmake/opentrack-platform.cmake index 88e8a5dd..eced4201 100644 --- a/cmake/opentrack-platform.cmake +++ b/cmake/opentrack-platform.cmake @@ -21,12 +21,9 @@ # ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR # OTHER DEALINGS IN THE SOFTWARE. -if(NOT CMAKE_INSTALL_PREFIX) - set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install") -endif() - if(NOT CMAKE_BUILD_TYPE) set(CMAKE_BUILD_TYPE "RELEASE" CACHE STRING "" FORCE) + set(CMAKE_INSTALL_PREFIX "${CMAKE_BINARY_DIR}/install") endif() if(APPLE) |