Fix static/shared lib detection

The check for BUILD_SHARED_LIBS had its logic backwards. If this
variable is not defined we must assume a build of static libs.
pull/3889/head
Alexander Nitsch 10 years ago
parent 66e653d24d
commit afd9de6f1b
  1. 2
      cmake/OpenCVConfig.cmake

@ -47,7 +47,7 @@ endif()
if(NOT DEFINED OpenCV_STATIC)
# look for global setting
if(NOT DEFINED BUILD_SHARED_LIBS OR BUILD_SHARED_LIBS)
if(BUILD_SHARED_LIBS)
set(OpenCV_STATIC OFF)
else()
set(OpenCV_STATIC ON)

Loading…
Cancel
Save