Skip to content

Commit

Permalink
[issue JdeRobot#485] Set CMAKE_INSTALL_PREFIX only if default value i…
Browse files Browse the repository at this point in the history
…s requested
  • Loading branch information
lr-morales committed Jul 26, 2017
1 parent ea0181e commit 01f58c0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ else()
project (jderobot-only-ice)
endif()

set(CMAKE_INSTALL_PREFIX /opt/jderobot)
# Change default install path
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set (CMAKE_INSTALL_PREFIX /opt/jderobot CACHE PATH "default install path" FORCE)
endif()

cmake_minimum_required(VERSION 2.8)

Expand Down

0 comments on commit 01f58c0

Please sign in to comment.