From 9795a40f886db0e9b700252e08d34d0b37ff8ecb Mon Sep 17 00:00:00 2001 From: Veeti Paananen Date: Fri, 19 Oct 2012 17:33:13 +0300 Subject: [PATCH] Use standard CMake variable names for installation paths Rename INSTALL_INC and INSTALL_BIN to INCLUDE_INSTALL_DIR and BIN_INSTALL_DIR, which are more commonly used. This is also consistent with the variable for the library path which is already LIB_INSTALL_DIR. --- CMakeLists.txt | 10 +++++----- README.md | 4 ++-- libgit2.pc.in | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 52929062d..4fb8eba56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -66,9 +66,9 @@ ELSE (ZLIB_FOUND) ENDIF() # Installation paths -SET(INSTALL_BIN bin CACHE PATH "Where to install binaries to.") +SET(BIN_INSTALL_DIR bin CACHE PATH "Where to install binaries to.") SET(LIB_INSTALL_DIR lib CACHE PATH "Where to install libraries to.") -SET(INSTALL_INC include CACHE PATH "Where to install headers to.") +SET(INCLUDE_INSTALL_DIR include CACHE PATH "Where to install headers to.") # Build options OPTION (BUILD_SHARED_LIBS "Build Shared Library (OFF for Static)" ON) @@ -170,13 +170,13 @@ ENDIF() # Install INSTALL(TARGETS git2 - RUNTIME DESTINATION ${INSTALL_BIN} + RUNTIME DESTINATION ${BIN_INSTALL_DIR} LIBRARY DESTINATION ${LIB_INSTALL_DIR} ARCHIVE DESTINATION ${LIB_INSTALL_DIR} ) INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/libgit2.pc DESTINATION ${LIB_INSTALL_DIR}/pkgconfig ) -INSTALL(DIRECTORY include/git2 DESTINATION ${INSTALL_INC} ) -INSTALL(FILES include/git2.h DESTINATION ${INSTALL_INC} ) +INSTALL(DIRECTORY include/git2 DESTINATION ${INCLUDE_INSTALL_DIR} ) +INSTALL(FILES include/git2.h DESTINATION ${INCLUDE_INSTALL_DIR} ) # Tests IF (BUILD_CLAR) diff --git a/README.md b/README.md index 5626d8785..08687276e 100644 --- a/README.md +++ b/README.md @@ -66,9 +66,9 @@ For more advanced use or questions about CMake please read