From 0aceed91475fbfc3ed6a1249792f4a322a6d86aa Mon Sep 17 00:00:00 2001 From: Reza Mousavi Date: Tue, 8 Sep 2026 17:02:19 +0330 Subject: [PATCH] disable Crow install by default for subprojects --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a1fb547aa..0ed90f3a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -49,7 +49,7 @@ option(CROW_BUILD_TESTS "Build the tests in the project" ${CROW_I option(CROW_BUILD_FUZZER "Instrument and build Crow fuzzer" OFF) option(CROW_ENABLE_SANITIZERS "Enable sanitizers (ASan, UBSan) for test builds" OFF) option(CROW_AMALGAMATE "Combine all headers into one" OFF) -option(CROW_INSTALL "Add install step for Crow" ON ) +option(CROW_INSTALL "Add install step for Crow" ${CROW_IS_MAIN_PROJECT}) option(CROW_USE_BOOST "Use Boost.Asio for Crow" OFF) option(CROW_GENERATE_SBOM "Generate SBOM file" OFF) option(CROW_RETURNS_OK_ON_HTTP_OPTIONS_REQUEST