mirror of https://github.com/davisking/dlib.git
Simplifying file 'cmake' now that include directories are set automatically
This commit is contained in:
parent
b024f23512
commit
0d4987a51b
|
@ -93,10 +93,7 @@ elseif (MSVC OR "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC") # else if using Visu
|
|||
endif()
|
||||
|
||||
|
||||
# Add folder containing dlib to the include search path.
|
||||
INCLUDE_DIRECTORIES(${dlib_path}/..)
|
||||
|
||||
# This is really optional, but nice. It will make sure the build mode
|
||||
# This is really optional, but nice. It will make sure the build mode
|
||||
# created by cmake is always release by default.
|
||||
include(${dlib_path}/cmake_utils/release_build_by_default)
|
||||
|
||||
|
@ -104,6 +101,5 @@ include(${dlib_path}/cmake_utils/release_build_by_default)
|
|||
# Don't add dlib if it's already been added to the cmake project
|
||||
if (NOT TARGET dlib)
|
||||
add_subdirectory(${dlib_path} dlib_build)
|
||||
INCLUDE_DIRECTORIES(${dlib_needed_includes})
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Reference in New Issue