Skip to content

Commit

Permalink
Fixed cmake error without torch
Browse files Browse the repository at this point in the history
  • Loading branch information
matlabbe committed Nov 20, 2021
1 parent 69e63e0 commit f7c38f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f7c38f9

Please sign in to comment.