Skip to content

Commit da3f711

Browse files
committed
Fail cmake generation if NBL_WITH_DOCKER is enabled and the host is not running windows
1 parent 426d361 commit da3f711

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ option(NBL_EMBED_BUILTIN_RESOURCES "Embed built-in resources?" ON)
196196
option(NBL_WITH_DOCKER "Detects and installs docker if not present in the system" OFF)
197197

198198
if (NBL_WITH_DOCKER)
199+
if (NOT CMAKE_HOST_WIN32)
200+
message(FATAL_ERROR "NBL_WITH_DOCKER works only with Windows machines. Please disable this option")
201+
endif()
202+
199203
find_program(DOCKER_EXECUTABLE docker)
200204

201205
if (DOCKER_EXECUTABLE)

0 commit comments

Comments
 (0)