Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-05-06 21:21:08 +0200
committerMartin Hořeňovský2020-05-06 21:21:08 +0200
commit9766a7b200f5ca1fd2046178cc4e136712fdc6d7 (patch)
tree190708fef14f635001bedeef25a081f42976c6bc
parent7c816c7c0bf57213e099b0b17ba91cc863b5910f (diff)
downloadcatch3-9766a7b200f5ca1fd2046178cc4e136712fdc6d7.tar.gz
Fix installation of extra utilities
-rw-r--r--CMakeLists.txt38
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