Simplifying file 'cmake' now that include directories are set automatically

This commit is contained in:
Alain Vaucher 2017-02-27 18:13:44 +01:00
parent b024f23512
commit 0d4987a51b
1 changed files with 1 additions and 5 deletions

View File

@ -93,9 +93,6 @@ 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
# 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()