From f7c38f91d0b076f365592974ff75972aa668b7f1 Mon Sep 17 00:00:00 2001 From: matlabbe Date: Sat, 20 Nov 2021 14:58:15 -0500 Subject: [PATCH] Fixed cmake error without torch --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0ed6aaa..e732aa1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,7 +85,7 @@ IF(NOT MSVC) ENDIF() ENDIF(TORCH_FOUND) - IF( (NOT (${CMAKE_CXX_STANDARD} STREQUAL "14")) AND OpenCV_VERSION_MAJOR EQUAL 4) + IF( NOT CMAKE_CXX_STANDARD AND OpenCV_VERSION_MAJOR EQUAL 4) #Newest versions require std11 include(CheckCXXCompilerFlag) CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)