From a7d837460f5eeba060900031322d088ba330964c Mon Sep 17 00:00:00 2001 From: Didier Raboud Date: Tue, 18 Dec 2012 09:11:44 +0100 Subject: Minor cmake grammar fix It is redundant to have CMAKE_INSTALL_PREFIX in path definitions; drop them. --- CMakeLists.txt | 4 ++-- src/CBot/CMakeLists.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b60ac93..2a39f07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -160,8 +160,8 @@ if(${TESTS}) endif() # TODO: provide data files as git submodule -set(COLOBOT_DATA_DIR ${CMAKE_INSTALL_PREFIX}/share/games/colobot CACHE PATH "Colobot shared data directory") -set(COLOBOT_LIB_DIR ${CMAKE_INSTALL_PREFIX}/lib/colobot CACHE PATH "Colobot libraries directory") +set(COLOBOT_DATA_DIR share/games/colobot CACHE PATH "Colobot shared data directory") +set(COLOBOT_LIB_DIR lib/colobot CACHE PATH "Colobot libraries directory") # Subdirectory with sources add_subdirectory(src bin) diff --git a/src/CBot/CMakeLists.txt b/src/CBot/CMakeLists.txt index 12d7262..e1c9b87 100644 --- a/src/CBot/CMakeLists.txt +++ b/src/CBot/CMakeLists.txt @@ -18,4 +18,4 @@ else() add_library(CBot SHARED ${SOURCES}) endif() -install(TARGETS CBot LIBRARY DESTINATION "${COLOBOT_LIB_DIR}") +install(TARGETS CBot LIBRARY DESTINATION ${COLOBOT_LIB_DIR}) -- cgit v1.2.3-1-g7c22