From 0c0bde22a88cc51bfcdcbc4bba4231f623d58211 Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 13 Aug 2016 12:47:55 -0400 Subject: [PATCH] New versions of boost and cmake need to be told to look in boost's library folder to find boost's libraries when building on windows. Bizarre. --- dlib/cmake_utils/add_python_module | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlib/cmake_utils/add_python_module b/dlib/cmake_utils/add_python_module index 2f0f191a7..25c267bad 100644 --- a/dlib/cmake_utils/add_python_module +++ b/dlib/cmake_utils/add_python_module @@ -52,6 +52,8 @@ set(Boost_NO_BOOST_CMAKE ON) if (NOT WIN32) set(BOOST_LIBRARYDIR ${BOOST_LIBRARYDIR} $ENV{BOOST_LIBRARYDIR} /usr/lib/x86_64-linux-gnu/) +else() + link_directories($ENV{BOOST_LIBRARYDIR}) endif() if (PYTHON3) # On some systems the boost python3 module is called python-py34 so check