Skip to content

Commit 70df5fa

Browse files
BlazingForestsxlz
authored andcommitted
fix the cmake conditional expression error
1 parent 6236635 commit 70df5fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ IF(ENABLE_CUDA)
356356
IF(NOT MSVC)
357357
SET(CUDA_FLAGS "${CUDA_FLAGS} -Xcompiler -fPIC")
358358
ENDIF()
359-
IF(HAVE_CXX11 EQUAL yes AND CUDA_VERSION VERSION_GREATER 7.0)
359+
IF(HAVE_CXX11 STREQUAL yes AND CUDA_VERSION VERSION_GREATER 7.0)
360360
SET(CUDA_FLAGS "${CUDA_FLAGS} -std=c++11")
361361
ENDIF()
362362

@@ -382,7 +382,7 @@ IF(ENABLE_CUDA)
382382
ENDIF(ENABLE_CUDA)
383383

384384
# RPATH handling for CUDA 8.0 libOpenCL.so conflict. See #804.
385-
IF(HAVE_OpenCL EQUAL yes AND UNIX AND NOT APPLE)
385+
IF(HAVE_OpenCL STREQUAL yes AND UNIX AND NOT APPLE)
386386
FILE(GLOB CUDA_ld_so_conf /etc/ld.so.conf.d/cuda*.conf)
387387
IF(CUDA_ld_so_conf)
388388
MESSAGE(WARNING "Your CUDA installation overrides OpenCL system library path.")

0 commit comments

Comments
 (0)