diff options
| author | Martin Hořeňovský | 2020-05-06 21:21:08 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-05-06 21:21:08 +0200 |
| commit | 9766a7b200f5ca1fd2046178cc4e136712fdc6d7 (patch) | |
| tree | 190708fef14f635001bedeef25a081f42976c6bc | |
| parent | 7c816c7c0bf57213e099b0b17ba91cc863b5910f (diff) | |
| download | catch3-9766a7b200f5ca1fd2046178cc4e136712fdc6d7.tar.gz | |
Fix installation of extra utilities
| -rw-r--r-- | CMakeLists.txt | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index bf2760f8..ce374079 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -134,25 +134,25 @@ if (NOT_SUBPROJECT) ) endif() - if(CATCH_INSTALL_HELPERS) - # Install CMake scripts - install( - FILES - "extras/ParseAndAddCatchTests.cmake" - "extras/Catch.cmake" - "extras/CatchAddTests.cmake" - DESTINATION - ${CATCH_CMAKE_CONFIG_DESTINATION} - ) - - # Install debugger helpers - install( - FILES - "extras/gdbinit" - "extras/lldbinit" - DESTINATION - ${CMAKE_INSTALL_DATAROOTDIR}/Catch2 - ) + if(CATCH_INSTALL_EXTRAS) + # Install CMake scripts + install( + FILES + "extras/ParseAndAddCatchTests.cmake" + "extras/Catch.cmake" + "extras/CatchAddTests.cmake" + DESTINATION + ${CATCH_CMAKE_CONFIG_DESTINATION} + ) + + # Install debugger helpers + install( + FILES + "extras/gdbinit" + "extras/lldbinit" + DESTINATION + ${CMAKE_INSTALL_DATAROOTDIR}/Catch2 + ) endif() ## Provide some pkg-config integration |