Only define one dlib target in CMake and shared vs. static is determined by…
Only define one dlib target in CMake and shared vs. static is determined by BUILD_SHARED_LIBS variable. (#1138) * Changed cmake so that there is only the dlib target and it isn't forced to be static or shared, instead, the build type will toggle based on the state of CMake's BUILD_SHARED_LIBS variable. * Make CMake build dlib statically whenever DLIB_IN_PROJECT_BUILD==true, regardless of the state of BUILD_SHARED_LIBS. This means projects that use dlib by saying add_subdirectory(dlib) will always statically link to dlib, unless DLIB_IN_PROJECT_BUILD is explicltly set to false and BUILD_SHARED_LIBS set to true.
Showing
Please
register
or
sign in
to comment