Commit d8bea4d3 authored by Davis King's avatar Davis King

Improved the help messages cmake outputs to tell the user how to install

optional dependencies such as X11, BLAS, and LAPACK.
parent 5471511a
...@@ -111,10 +111,10 @@ if (NOT TARGET dlib) ...@@ -111,10 +111,10 @@ if (NOT TARGET dlib)
include_directories(${x11_path}) include_directories(${x11_path})
set(dlib_needed_libraries ${dlib_needed_libraries} ${xlib} ) set(dlib_needed_libraries ${dlib_needed_libraries} ${xlib} )
else() else()
message(" ***********************************************************************************") message(" *****************************************************************************")
message(" ****** DLIB GUI SUPPORT DISABLED BECAUSE X11 DEVELOPMENT LIBRARIES NOT FOUND ******") message(" *** DLIB GUI SUPPORT DISABLED BECAUSE X11 DEVELOPMENT LIBRARIES NOT FOUND ***")
message(" ****** Make sure libx11-dev is installed if you want GUI support ******") message(" *** Make sure libx11-dev is installed if you want GUI support ***")
message(" ***********************************************************************************") message(" *****************************************************************************")
set(DLIB_NO_GUI_SUPPORT ON CACHE STRING ${DLIB_NO_GUI_SUPPORT_STR} FORCE ) set(DLIB_NO_GUI_SUPPORT ON CACHE STRING ${DLIB_NO_GUI_SUPPORT_STR} FORCE )
endif() endif()
endif() endif()
...@@ -142,10 +142,10 @@ if (NOT TARGET dlib) ...@@ -142,10 +142,10 @@ if (NOT TARGET dlib)
include_directories(${X11_INCLUDE_DIR}) include_directories(${X11_INCLUDE_DIR})
set (dlib_needed_libraries ${dlib_needed_libraries} ${X11_LIBRARIES}) set (dlib_needed_libraries ${dlib_needed_libraries} ${X11_LIBRARIES})
else() else()
message(" ***********************************************************************************") message(" *****************************************************************************")
message(" ****** DLIB GUI SUPPORT DISABLED BECAUSE X11 DEVELOPMENT LIBRARIES NOT FOUND ******") message(" *** DLIB GUI SUPPORT DISABLED BECAUSE X11 DEVELOPMENT LIBRARIES NOT FOUND ***")
message(" ****** Make sure libx11-dev is installed if you want GUI support ******") message(" *** Make sure libx11-dev is installed if you want GUI support ***")
message(" ***********************************************************************************") message(" *****************************************************************************")
set(DLIB_NO_GUI_SUPPORT ON CACHE STRING ${DLIB_NO_GUI_SUPPORT_STR} FORCE ) set(DLIB_NO_GUI_SUPPORT ON CACHE STRING ${DLIB_NO_GUI_SUPPORT_STR} FORCE )
endif() endif()
endif() endif()
......
...@@ -163,7 +163,12 @@ if (UNIX) ...@@ -163,7 +163,12 @@ if (UNIX)
if (NOT blas_found) if (NOT blas_found)
message(STATUS "***** No BLAS library found *****") message(" *****************************************************************************")
message(" *** No BLAS library found so using dlib's built in BLAS. However, if you ***")
message(" *** install an optimized BLAS such as openblas or the Intel MKL your code ***")
message(" *** will run faster. On Ubuntu you can install openblas by executing: ***")
message(" *** sudo apt-get install libopenblas-dev liblapack-dev ***")
message(" *****************************************************************************")
endif() endif()
endif() endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment