diff --git a/cmake/daggy_features.cmake b/cmake/daggy_features.cmake index c7cce8d..6807bf4 100644 --- a/cmake/daggy_features.cmake +++ b/cmake/daggy_features.cmake @@ -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 ()