diff --git a/CMakeLists.txt b/CMakeLists.txt index d4353a8..3b67aa3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,7 +36,7 @@ set(QOLM_TESTS_PREFIX ${QOLM_PROJECT} CACHE STRING "Prefix for all QOlm tests") set(QOLM_ENABLE_EXAMPLES OFF CACHE BOOL "Create or not a target for examples") set(QOLM_EXAMPLES_PREFIX ${QOLM_PROJECT} CACHE STRING "Prefix for all QOlm tests") -set(QOLM_INSTALL ${QOLM_MAIN_PROJECT} CACHE BOOL "Generate the install target") +set(QOLM_ENABLE_INSTALL ${QOLM_MAIN_PROJECT} CACHE BOOL "Generate the install target") # ───── VERSION ───── @@ -74,7 +74,7 @@ message(STATUS "QOLM_VERSION : " ${QOLM_VERSION}) message(STATUS "QOLM_VERSION_TAG : " ${QOLM_VERSION_TAG}) message(STATUS "QOLM_FOLDER_PREFIX : " ${QOLM_FOLDER_PREFIX}) message(STATUS "QOLM_BUILD_SHARED : " ${QOLM_BUILD_SHARED}) -message(STATUS "QOLM_INSTALL : " ${QOLM_INSTALL}) +message(STATUS "QOLM_ENABLE_INSTALL : " ${QOLM_ENABLE_INSTALL}) # Tests message(STATUS "QOLM_ENABLE_TESTS : " ${QOLM_ENABLE_TESTS}) @@ -153,7 +153,7 @@ endif() # ───── INSTALLATION ───── -if(QOLM_INSTALL) +if(QOLM_ENABLE_INSTALL) include(GNUInstallDirs) install(TARGETS ${QOLM_TARGET} EXPORT ${QOLM_TARGET}Targets diff --git a/Readme.md b/Readme.md index d874934..02b411b 100644 --- a/Readme.md +++ b/Readme.md @@ -47,7 +47,7 @@ target_link_libraries(MyTarget PRIVATE QOlm::QOlm) ```bash # configure -cmake -DQOLM_INSTALL=ON .. +cmake -DQOLM_ENABLE_INSTALL=ON .. # build cmake --build . --target QOlm --config "Release diff --git a/cmake/PrintConfiguration.cmake b/cmake/PrintConfiguration.cmake index df2f5e4..dd21738 100644 --- a/cmake/PrintConfiguration.cmake +++ b/cmake/PrintConfiguration.cmake @@ -40,7 +40,7 @@ message(STATUS " QOlmTestsQml : cmake --build . --target ${QOLM_TARGET}_Tests message(STATUS " Run Tests : ctest -C ${CMAKE_BUILD_TYPE} . --verbose --progress") endif() -if(${QOLM_INSTALL}) +if(${QOLM_ENABLE_INSTALL}) message(STATUS " ") message(STATUS "Install to \"${CMAKE_INSTALL_PREFIX}\":") message(STATUS " Install : cmake --install . [--prefix ]")