Skip to content
Snippets Groups Projects
Commit 0e09630b authored by Tomáš Pecka's avatar Tomáš Pecka
Browse files

CMake: Install to /usr if CMAKE_INSTALL_PREFIX not specified

parent 04fbe02f
No related branches found
No related tags found
No related merge requests found
Pipeline #22766 passed
......@@ -92,7 +92,10 @@ endif()
set(CMAKE_CXX_STANDARD {{cpp_version}})
 
# TODO set CMAKE_INSTALL_PREFIX in release only
set(CMAKE_INSTALL_PREFIX /usr)
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set (CMAKE_INSTALL_PREFIX /usr)
endif()
message ( "[Install] Install directory prefix is ${{CMAKE_INSTALL_PREFIX}}" )
set(CMAKE_INSTALL_RPATH "${{CMAKE_INSTALL_PREFIX}}/lib")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
 
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment