You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
message(FATAL_ERROR "Could not find OpenCV's face detector haarcascade_frontalface_alt2.xml in ${OpenCV_haarcascades_DIR}. Please set OpenCV_haarcascades_DIR to the directory with that file.")
59
59
endif()
60
60
61
+
if(MSVC)
62
+
# The standard find_package for boost on Win finds the dynamic libs, so for dynamic linking to boost we need to #define:
63
+
add_definitions(-DBOOST_ALL_NO_LIB) # Don't use the automatic library linking by boost with VS (#pragma ...). Instead, we specify everything here in cmake.
64
+
add_definitions(-DBOOST_ALL_DYN_LINK) # Link against the dynamic boost lib - needs to match with the version that find_package finds.
65
+
endif()
61
66
find_package(Boost 1.48.0 COMPONENTS system filesystem program_options REQUIRED)
62
67
if(Boost_FOUND)
63
68
message(STATUS"Boost found at ${Boost_INCLUDE_DIRS}")
0 commit comments