File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ project(libcloudph++ LANGUAGES CXX)
1616list (INSERT CMAKE_MODULE_PATH 0 ${PROJECT_SOURCE_DIR} /cmake)
1717
1818#set(CMAKE_MACOSX_RPATH ON) # explicit, since policy CMP0042 didn't work...
19-
2019# using include() istead of find_package(libcloudph++) to use local CMake code
2120# and not the system-installed one
2221#include(${CMAKE_SOURCE_DIR}/libcloudph++-config.cmake)
@@ -37,8 +36,13 @@ set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "")
3736
3837############################################################################################
3938# see if CUDA is available
40- include (CheckLanguage)
41- check_language(CUDA)
39+
40+ option (LIBCLOUDPHXX_DISABLE_CUDA "LIBCLOUDPHXX_DISABLE_CUDA" False )
41+
42+ if (NOT LIBCLOUDPHXX_DISABLE_CUDA)
43+ include (CheckLanguage)
44+ check_language(CUDA)
45+ endif ()
4246
4347if (NOT CMAKE_CUDA_COMPILER)
4448 message (STATUS "CUDA not found.
You can’t perform that action at this time.
0 commit comments