• Davis E. King's avatar
    Only define one dlib target in CMake and shared vs. static is determined by… · 61f747de
    Davis E. King authored
    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.
    61f747de
Name
Last commit
Last update
dlib Loading commit data...
docs Loading commit data...
examples Loading commit data...
python_examples Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
.travis.yml Loading commit data...
CMakeLists.txt Loading commit data...
ISSUE_TEMPLATE.md Loading commit data...
MANIFEST.in Loading commit data...
README.md Loading commit data...
setup.py Loading commit data...