Skip to content

Commit 5f7f7fa

Browse files
committed
check for docker existance
1 parent bd61bb8 commit 5f7f7fa

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,16 @@ option(NBL_ENABLE_PROJECT_JSON_CONFIG_VALIDATION "" ON)
195195
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

198+
if (NBL_WITH_DOCKER)
199+
find_program(DOCKER_EXECUTABLE docker)
200+
201+
if (DOCKER_EXECUTABLE)
202+
message(STATUS "Found docker executable: ${DOCKER_EXECUTABLE}")
203+
else()
204+
# TODO: Install docker
205+
endif()
206+
endif()
207+
198208
set(THIRD_PARTY_SOURCE_DIR "${PROJECT_SOURCE_DIR}/3rdparty")
199209
set(THIRD_PARTY_BINARY_DIR "${PROJECT_BINARY_DIR}/3rdparty")
200210

0 commit comments

Comments
 (0)