Add EXCLUDE_FROM_ALL on all FetchContent

This commit is contained in:
Patrick Nicolas
2024-06-08 21:24:40 +02:00
committed by Guillaume Meunier
parent 369666401c
commit 52cbe34404
2 changed files with 15 additions and 26 deletions
+1 -9
View File
@@ -54,15 +54,7 @@ set(XRT_IPC_MSG_SOCK_FILENAME "wivrn_comp_ipc" CACHE STRING "Service socket
set(XRT_IPC_SERVICE_PID_FILENAME "wivrn.pid" CACHE STRING "Service pidfile filename")
set(XRT_OXR_RUNTIME_SUFFIX "wivrn" CACHE STRING "OpenXR client library suffix")
FetchContent_GetProperties(monado)
if(NOT monado_POPULATED)
# Fetch the content using previously declared details
FetchContent_Populate(monado)
# Bring the populated content into the build
add_subdirectory(${monado_SOURCE_DIR} ${monado_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()
FetchContent_MakeAvailable(monado)
add_executable(wivrn-server
accept_connection.cpp