Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2022-09-08 13:41:45 +0300
committerRobert Adam <dev@robert-adam.de>2022-09-10 18:28:34 +0300
commit09a17879f8680abd89f6c7d1e62a0f2132e588dc (patch)
treeac246e6629635ddeac0072594b6f8667b25b4f0e /overlay_gl
parentb61091dbd7b07b01c64f7df65d2bef029f4528ff (diff)
BUILD(cmake): Use EXCLUDE_FROM_ALL for 3rdparty subdirs
This prevents adding all targets in said subdirectories to the ALL target by default. Instead, only those targets that are explicitly referenced (e.g. via target_link_libraries) are built. This also has the side-effect that any install-directives in these subdirectories are also ignored for the default install targets which prevents these libraries of unconditionally installing themselves when issuing a make install. Instead, we now have to make any 3rdparty component that we do indeed want to install, do so explicitly (e.g. via install_library()).
Diffstat (limited to 'overlay_gl')
-rw-r--r--overlay_gl/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/overlay_gl/CMakeLists.txt b/overlay_gl/CMakeLists.txt
index 4b20759c2..4a0a2dc67 100644
--- a/overlay_gl/CMakeLists.txt
+++ b/overlay_gl/CMakeLists.txt
@@ -101,7 +101,7 @@ if(NOT APPLE)
endif()
endif()
else()
- add_subdirectory("${3RDPARTY_DIR}/mach-override-build" "${CMAKE_CURRENT_BINARY_DIR}/mach-override")
+ add_subdirectory("${3RDPARTY_DIR}/mach-override-build" "${CMAKE_CURRENT_BINARY_DIR}/mach-override" EXCLUDE_FROM_ALL)
find_library(LIB_COREFOUNDATION "CoreFoundation")