Fixing feature checking
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Slurm support
|
||||
message("-- DAGGY_ENABLE_SLURM is set to ${DAGGY_ENABLE_SLURM}")
|
||||
if (DAGGY_ENABLE_SLURM)
|
||||
if (${DAGGY_ENABLE_SLURM} STREQUAL "ON")
|
||||
find_library(SLURM_LIB libslurm.so libslurm.a slurm REQUIRED)
|
||||
find_path(SLURM_INCLUDE_DIR "slurm/slurm.h" REQUIRED)
|
||||
|
||||
@@ -18,8 +18,8 @@ if (DAGGY_ENABLE_SLURM)
|
||||
endif ()
|
||||
|
||||
# Redis support
|
||||
message("-- DAGGY_ENABLE_REDIS is set to ${DAGGY_ENABLE_SLURM}")
|
||||
if (DAGGY_ENABLE_REDIS)
|
||||
message("-- DAGGY_ENABLE_REDIS is set to ${DAGGY_ENABLE_REDIS}")
|
||||
if (${DAGGY_ENABLE_REDIS} STREQUAL "ON")
|
||||
include(cmake/hiredis.cmake)
|
||||
target_compile_definitions(slurm INTERFACE DAGGY_ENABLE_REDIS)
|
||||
target_compile_definitions(redis INTERFACE DAGGY_ENABLE_REDIS)
|
||||
endif ()
|
||||
|
||||
Reference in New Issue
Block a user