Skip to content

Commit 4914860

Browse files
committed
Error when running cmkr.cmake as a script
1 parent ed84fc0 commit 4914860

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmake/cmkr.cmake

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
include_guard()
22

3+
if(CMAKE_SCRIPT_MODE_FILE)
4+
message(FATAL_ERROR "Running cmkr.cmake as a script is unsupported. To build your project try: cmake -B build")
5+
endif()
6+
37
# Change these defaults to point to your infrastructure if desired
48
set(CMKR_REPO "https://github.com/build-cpp/cmkr" CACHE STRING "cmkr git repository" FORCE)
59
set(CMKR_TAG "archive_7c7144b1" CACHE STRING "cmkr git tag (this needs to be available forever)" FORCE)

0 commit comments

Comments
 (0)