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 e005759 commit 5447d46Copy full SHA for 5447d46
CMakeLists.txt
@@ -11,11 +11,11 @@ project(prevail)
11
12
include(FetchContent)
13
14
-if (EXISTS "${PROJECT_SOURCE_DIR}/.git" AND NOT CMAKE_CROSSCOMPILING)
+if (IS_DIRECTORY "${PROJECT_SOURCE_DIR}/.git" AND NOT CMAKE_CROSSCOMPILING)
15
file(COPY "${CMAKE_SOURCE_DIR}/scripts/pre-commit" "${CMAKE_SOURCE_DIR}/scripts/commit-msg" DESTINATION "${PROJECT_SOURCE_DIR}/.git/hooks")
16
option(prevail_ENABLE_TESTS "Build tests" ON)
17
else ()
18
- option(prevail_ENABLE_TESTS "Build tests" OFF)
+ option(prevail_ENABLE_TESTS "Build tests" OFF)
19
endif ()
20
21
message("Building tests: ${prevail_ENABLE_TESTS}")
0 commit comments