summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-01-18 12:22:44 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-01-18 12:22:44 +0100
commit682eaa51a76605c028a844acb1cfe7dbfa0ab945 (patch)
treec5cd440477340d0507deecff1b5e08b1f73b3fb4
parenta7a60c8f5328d8d1b6dbb2d73635ab64aa480d41 (diff)
cmake: fix setting default install prefix on startup
-rw-r--r--cmake/opentrack-platform.cmake5
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)