diff --git a/CMakeLists.txt b/CMakeLists.txt index c32c281..aa1b049 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -75,7 +75,7 @@ endif() endif() if(NOT DEFINED CUB_DIR AND DEFINED ENV{CUB_DIR}) - set(CUB_DIR ENV{CUB_DIR}) + set(CUB_DIR $ENV{CUB_DIR}) endif() message(STATUS "Finding CUB")