mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
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.
This commit is contained in:
parent
66e653d24d
commit
afd9de6f1b
@ -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…
Reference in New Issue
Block a user