Skip to content

Commit

Permalink
💥 Rename QOLM_INSTALL to QOLM_ENABLE_INSTALL
Browse files Browse the repository at this point in the history
to keep consistency with other variable naming
  • Loading branch information
OlivierLDff committed Jul 15, 2021
1 parent 6eb3b45 commit ecfc816
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 ─────

Expand Down Expand Up @@ -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})
Expand Down Expand Up @@ -153,7 +153,7 @@ endif()

# ───── INSTALLATION ─────

if(QOLM_INSTALL)
if(QOLM_ENABLE_INSTALL)
include(GNUInstallDirs)
install(TARGETS ${QOLM_TARGET}
EXPORT ${QOLM_TARGET}Targets
Expand Down
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmake/PrintConfiguration.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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 <install-dir>]")
Expand Down

0 comments on commit ecfc816

Please sign in to comment.