Skip to content

Commit

Permalink
cmake: abort cmake run if droplet is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz authored and franku committed Jul 20, 2020
1 parent e18ada1 commit 23f9930
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions core/src/CMakeLists.txt
Expand Up @@ -19,10 +19,17 @@
message("Entering ${CMAKE_CURRENT_SOURCE_DIR}")

add_subdirectory(filed)

if(NOT client-only)
# droplet does not build on solaris because of sys/cdefs.h: No such file or
# directory
if(NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
if(NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/droplet/CMakeLists.txt)
message(
FATAL_ERROR
"Please checkout the libdroplet submodule via \n \"git submodule update --init --recursive\""
)
endif()
add_subdirectory(droplet)
endif()
add_subdirectory(tools)
Expand Down

0 comments on commit 23f9930

Please sign in to comment.