We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48c4ef1 commit d5ca7f8Copy full SHA for d5ca7f8
1 file changed
CMakeLists.txt
@@ -58,6 +58,10 @@ option(CROW_RETURNS_OK_ON_HTTP_OPTIONS_REQUEST
58
option(CROW_ENABLE_SSL "Enable Crow's SSL feature for supporting https" OFF)
59
option(CROW_ENABLE_COMPRESSION "Enable Crow's Compression feature for supporting compressed http content" OFF)
60
61
+if(CROW_GENERATE_SBOM OR CROW_BUILD_TESTS)
62
+ include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/CPM.cmake)
63
+endif ()
64
+
65
if(CROW_GENERATE_SBOM)
66
CPMAddPackage(
67
NAME cmake-sbom
@@ -253,7 +257,6 @@ endif()
253
257
254
258
# Tests
255
259
if(CROW_BUILD_TESTS)
256
- include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/CPM.cmake)
260
261
add_subdirectory(tests)
262
enable_testing()
0 commit comments