Fix CMake Linux build (#3478)

This commit is contained in:
Łukasz Nocuń 2021-06-29 23:16:51 +02:00 committed by GitHub
parent 4d0f027f58
commit 38f0fdcd88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -256,7 +256,7 @@ if(CLANG) # clang all platforms
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -DDEBUG -pedantic -O0")
endif()
if (OPENMP_BUILD AND MSVC AND ${MSVC_VERSION} LESS 1929)
if (OPENMP_BUILD AND MSVC AND "${MSVC_VERSION}" LESS 1929)
set(OPENMP_BUILD OFF)
endif()
if (OPENMP_BUILD)