title: CMake does not find boost libraries (boost_thread, boost_system)
body: <p>My aim is to use CGAL libraries; I have to configure from Cmake. The problem is that the boost libraries are not found. Of course I know that this question has been asked a couple of times but I was not able to fix the problem by using the provided answers like <a href="https://stackoverflow.com/questions/13280823/cmake-not-finding-boost">CMake not finding Boost</a> or <a href="https://stackoverflow.com/questions/19303430/cmake-cannot-find-boost-libraries?rq=1">Cmake cannot find Boost libraries</a> or <a href="https://stackoverflow.com/questions/3808775/cmake-doesnt-find-boost">Cmake doesn&#39;t find Boost</a> </p>
  
  <p>I have set the BOOST_ROOT to C:/dev/boost_1_55_0</p>
  
  <p>This is what I see in CMake:</p>
  
  <pre><code>&gt;CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules       
  &gt;/FindBoost.cmake:1111 (message):
  &gt;Unable to find the requested Boost libraries.
  &gt;
  &gt;Boost version: 1.55.0
  &gt;
  &gt;Boost include path: C:/dev/boost_1_55_0
  &gt;
  &gt;Could not find the following static Boost libraries:
  &gt;
  &gt;          boost_thread
  &gt;          boost_system
  &gt;
  &gt;    No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  &gt;    directory containing Boost libraries or BOOST_ROOT to the location of
  &gt;    Boost.
  &gt;   Call Stack (most recent call first):
  &gt;    cmake/modules/CGAL_SetupBoost.cmake:6 (find_package)
  &gt;    cmake/modules/CGAL_SetupDependencies.cmake:85 (include)                        
  &gt;    CMakeLists.txt:590 (include)
  </code></pre>
  
  <p>This is what I get when running cmake -DBoost_DEBUG=ON  :</p>
  
  <pre><code>&gt;C:\dev\CGAL-4.4&gt;cmake -DBoost_DEBUG=ON
  &gt;== Setting paths ==
  &gt;-- Build CGAL from release in directory CGAL-4.4
  &gt;-- Packagenames: CGAL-4.4
  &gt;== Setting paths (DONE) ==
  &gt;
  &gt;== Generate version files ==
  &gt;-- CGAL_MAJOR_VERSION=4
  &gt;-- CGAL_MINOR_VERSION=4
  &gt;-- CGAL_BUGFIX_VERSION=0
  &gt;-- CGAL_SONAME_VERSION=10
  &gt;-- CGAL_SOVERSION     =10.0.3
  &gt;-- CGAL_REFERENCE_CACHE_DIR=
  &gt;-- Building shared libraries
  &gt;-- Targetting Visual Studio 10
  &gt;-- Target build enviroment supports auto-linking
  &gt;-- Using VC10 compiler.
  &gt;-- Generator uses intermediate configuration directory: $(Configuration)
  &gt;-- USING CMake version: 2.8.12
  &gt;-- System: Windows
  &gt;== Generate version files (DONE) ==
  &gt;
  &gt;== Set up flags ==
  &gt;-- Build type: Release
  &gt;-- USING CXXFLAGS = ' /DWIN32 /D_WINDOWS /W3 /GR /EHsc -D_CRT_SECURE_NO_DEPRECAT
  &gt;E -D_SCL_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS
  &gt; /fp:strict /fp:except- /wd4503 /bigobj /MD /O2 /Ob2 /D NDEBUG'
  &gt;-- USING LDFLAGS = ' /machine:X86  /INCREMENTAL:NO'
  &gt;== Set up flags (DONE) ==
  &gt;
  &gt;== Detect external libraries ==
  &gt;-- External libraries supported: GMP;MPFR;ZLIB;OpenGL;LEDA;MPFI;RS;RS3;OpenNL;TA
  &gt;UCS;Eigen3;BLAS;LAPACK;QGLViewer;ESBTL;Coin3D;NTL;IPE
  &gt;-- Preconfiguring library: GMP ...
  &gt;-- GMP has been preconfigured:
  &gt;--   UseGMP-file:
  &gt;--   GMP include:      C:/dev/CGAL-4.4/auxiliary/gmp/include
  &gt;--   GMP libraries:    C:/dev/CGAL-4.4/auxiliary/gmp/lib/libgmp-10.lib
  &gt;--   GMP definitions:
  &gt;-- USING GMP_VERSION = '5.0.1'
  &gt;-- Preconfiguring library: MPFR ...
  &gt;-- MPFR has been preconfigured:
  &gt;--   UseMPFR-file:
  &gt;--   MPFR include:      C:/dev/CGAL-4.4/auxiliary/gmp/include
  &gt;--   MPFR libraries:    C:/dev/CGAL-4.4/auxiliary/gmp/lib/libmpfr-4.lib
  &gt;--   MPFR definitions:
  &gt;-- USING MPFR_VERSION = '3.0.0'
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:47
  &gt;6 ] _boost_TEST_VERSIONS = 1.56.1;1.56.0;1.56;1.55.1;1.55.0;1.55;1.54.1;1.54.0;1
  &gt;.54;1.53.1;1.53.0;1.53;1.52.1;1.52.0;1.52;1.51.1;1.51.0;1.51;1.50.1;1.50.0;1.50;
  &gt;1.49.1;1.49.0;1.49;1.48.1;1.48.0;1.48;1.47.1;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45
  &gt;.1;1.45.0;1.45;1.44.1;1.44.0;1.44;1.43.1;1.43.0;1.43;1.42.1;1.42.0;1.42;1.41.1;1
  &gt;.41.0;1.41;1.40.1;1.40.0;1.40;1.39.1;1.39.0;1.39;1.38.1;1.38.0;1.38;1.37.1;1.37.
  &gt;0;1.37;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1
  &gt;.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.
  &gt;44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.3
  &gt;8;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.
  &gt;33
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:47
  &gt;8 ] Boost_USE_MULTITHREADED = TRUE
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:48
  &gt;0 ] Boost_USE_STATIC_LIBS = OFF
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:48
  &gt;2 ] Boost_USE_STATIC_RUNTIME =
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:48
  &gt;4 ] Boost_ADDITIONAL_VERSIONS = 1.56.1;1.56.0;1.56;1.55.1;1.55.0;1.55;1.54.1;1.5
  &gt;4.0;1.54;1.53.1;1.53.0;1.53;1.52.1;1.52.0;1.52;1.51.1;1.51.0;1.51;1.50.1;1.50.0;
  &gt;1.50;1.49.1;1.49.0;1.49;1.48.1;1.48.0;1.48;1.47.1;1.47.0;1.47;1.46.1;1.46.0;1.46
  &gt;;1.45.1;1.45.0;1.45;1.44.1;1.44.0;1.44;1.43.1;1.43.0;1.43;1.42.1;1.42.0;1.42;1.4
  &gt;1.1;1.41.0;1.41;1.40.1;1.40.0;1.40;1.39.1;1.39.0;1.39;1.38.1;1.38.0;1.38;1.37.1;
  &gt;1.37.0;1.37
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:48
  &gt;6 ] Boost_NO_SYSTEM_PATHS =
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:53
  &gt;8 ] Declared as CMake or Environmental Variables:
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:54
  &gt;0 ]   BOOST_ROOT =
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:54
  &gt;2 ]   BOOST_INCLUDEDIR =
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:54
  &gt;4 ]   BOOST_LIBRARYDIR =
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:54
  &gt;6 ] _boost_TEST_VERSIONS = 1.56.1;1.56.0;1.56;1.55.1;1.55.0;1.55;1.54.1;1.54.0;1
  &gt;.54;1.53.1;1.53.0;1.53;1.52.1;1.52.0;1.52;1.51.1;1.51.0;1.51;1.50.1;1.50.0;1.50;
  &gt;1.49.1;1.49.0;1.49;1.48.1;1.48.0;1.48;1.47.1;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45
  &gt;.1;1.45.0;1.45;1.44.1;1.44.0;1.44;1.43.1;1.43.0;1.43;1.42.1;1.42.0;1.42;1.41.1;1
  &gt;.41.0;1.41;1.40.1;1.40.0;1.40;1.39.1;1.39.0;1.39;1.38.1;1.38.0;1.38;1.37.1;1.37.
  &gt;0;1.37;1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1
  &gt;.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.
  &gt;44.0;1.44;1.43.0;1.43;1.42.0;1.42;1.41.0;1.41;1.40.0;1.40;1.39.0;1.39;1.38.0;1.3
  &gt;8;1.37.0;1.37;1.36.1;1.36.0;1.36;1.35.1;1.35.0;1.35;1.34.1;1.34.0;1.34;1.33.1;1.
  &gt;33
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:63
  &gt;9 ] location of version.hpp: C:/dev/boost_1_55_0/boost/version.hpp
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:66
  &gt;3 ] version.hpp reveals boost 1.55.0
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:73
  &gt;9 ] guessed _boost_COMPILER = -vc100
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:74
  &gt;9 ] _boost_MULTITHREADED = -mt
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:79
  &gt;2 ] _boost_RELEASE_ABI_TAG = -
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:79
  &gt;4 ] _boost_DEBUG_ABI_TAG = -gd
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:84
  &gt;2 ] _boost_LIBRARY_SEARCH_DIRS = C:/dev/boost_1_55_0/lib;C:/dev/boost_1_55_0/../
  &gt;lib;C:/dev/boost_1_55_0/stage/lib;PATHS;C:/boost/lib;C:/boost;/sw/local/lib
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:93
  &gt;0 ] Searching for THREAD_LIBRARY_RELEASE: boost_thread-vc100-mt-1_55;boost_threa
  &gt;d-vc100-mt;boost_thread-mt-1_55;boost_thread-mt;boost_thread
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:96
  &gt;6 ] Searching for THREAD_LIBRARY_DEBUG: boost_thread-vc100-mt-gd-1_55;boost_thre
  &gt;ad-vc100-mt-gd;boost_thread-mt-gd-1_55;boost_thread-mt-gd;boost_thread-mt;boost_
  &gt;thread
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:93
  &gt;0 ] Searching for SYSTEM_LIBRARY_RELEASE: boost_system-vc100-mt-1_55;boost_syste
  &gt;m-vc100-mt;boost_system-mt-1_55;boost_system-mt;boost_system
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:96
  &gt;6 ] Searching for SYSTEM_LIBRARY_DEBUG: boost_system-vc100-mt-gd-1_55;boost_syst
  &gt;em-vc100-mt-gd;boost_system-mt-gd-1_55;boost_system-mt-gd;boost_system-mt;boost_
  &gt;system
  &gt;-- [ C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoost.cmake:10
  &gt;17 ] Boost_FOUND = 1
  &gt;CMake Error at C:/Program Files (x86)/CMake 2.8/share/cmake-2.8/Modules/FindBoos
  &gt;t.cmake:1111 (message):
  &gt;  Unable to find the requested Boost libraries.
  &gt;
  &gt; Boost version: 1.55.0
  &gt;
  &gt;  Boost include path: C:/dev/boost_1_55_0
  &gt;
  &gt;  Could not find the following Boost libraries:
  &gt;
  &gt;          boost_thread
  &gt;          boost_system
  &gt;
  &gt;  No Boost libraries were found.  You may need to set BOOST_LIBRARYDIR to the
  &gt;  directory containing Boost libraries or BOOST_ROOT to the location of
  &gt;  Boost.
  &gt;Call Stack (most recent call first):
  &gt;  cmake/modules/CGAL_SetupBoost.cmake:6 (find_package)
  &gt;  cmake/modules/CGAL_SetupDependencies.cmake:85 (include)
  &gt;  CMakeLists.txt:590 (include)
  &gt;
  &gt;
  &gt;-- Boost include:     C:/dev/boost_1_55_0
  &gt;-- Boost libraries:
  &gt;-- Boost definitions:
  &gt;-- USING BOOST_VERSION = '1.55.0'
  &gt;== Detect external libraries (DONE) ==
  &gt;
  &gt;== Write compiler_config.h ==
  &gt;== Write compiler_config.h (DONE) ==
  &gt;
  &gt;== Generating build files ==
  &gt;Configuring libCGAL
  &gt;-- Requested component: MPFR
  &gt;-- Requested component: GMP
  &gt;libCGAL is configured
  &gt;-- Sources for CGAL component library 'CGAL_Core' detected
  &gt;Configuring libCGAL_Core
  &gt;-- Requested component: MPFR
  &gt;-- Requested component: GMP
  &gt;libCGAL_Core is configured
  &gt;-- Sources for CGAL component library 'CGAL_ImageIO' detected
  &gt;Configuring libCGAL_ImageIO
  &gt;-- Could NOT find ZLIB (missing:  ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
  &gt;-- OpenGL include:
  &gt;-- OpenGL libraries:   glu32;opengl32
  &gt;-- Requested component: MPFR
  &gt;-- Requested component: GMP
  &gt;libCGAL_ImageIO is configured
  &gt;-- NOTICE: libCGAL_ImageIO needs ZLib to read compressed files. That feature wil
  &gt;l not be activated.
  &gt;-- Sources for CGAL component library 'CGAL_Qt3' detected
  &gt;Configuring libCGAL_Qt3
  &gt;-- libCGAL_Qt3 needs Qt3, cannot be configured.
  &gt;-- Sources for CGAL component library 'CGAL_Qt4' detected
  &gt;Configuring libCGAL_Qt4
  &gt;-- libCGAL_Qt4 needs Qt4, cannot be configured.
  &gt;-- Sources for CGAL component libraries 'CGAL_Core;CGAL_ImageIO;CGAL_Qt3;CGAL_Qt
  &gt;4' detected
  &gt;== Generating build files (DONE) ==
  &gt;
  &gt;-- Configuring incomplete, errors occurred!
  </code></pre>
  
  <p>I tried it with ticking the checkbox "CGAL_Boost_USE_STATIC_LIBS" in CMake but it did not help.
  What can I change so that the program works?
  Thanks for you answers!</p>