Even with the latest 3.15.4, I get the same error $ cmake --version cmake version 3.15.4
CMake suite maintained and supported by Kitware (kitware.com/cmake). $ cmake -DBoost_NO_SYSTEM_PATHS=ON -DBOOST_INCLUDE_DIR=/storage/users/mnaderan/boost_1_65_1/build/include/ -DBoost_LIBRARY_DIRS=/storage/users/mnaderan/boost_1_65_1/build/lib/ -DBoost_ADDITIONAL_VERSIONS=1.65.1 .. -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is GNU 4.8.5 -- Check for working C compiler: /bin/cc -- Check for working C compiler: /bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /bin/c++ -- Check for working CXX compiler: /bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for pthread.h -- Looking for pthread.h - found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Found CUDA: /usr/local/cuda-10.0 (found suitable version "10.0", minimum required is "7.5") -- Could NOT find Boost CMake Error at /storage/users/mnaderan/tools/cmake-3.15.4/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Could NOT find Boost (missing: Boost_INCLUDE_DIR system filesystem timer chrono) (Required is at least version "1.58") Call Stack (most recent call first): /storage/users/mnaderan/tools/cmake-3.15.4/share/cmake-3.15/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) /storage/users/mnaderan/tools/cmake-3.15.4/share/cmake-3.15/Modules/FindBoost.cmake:2161 (find_package_handle_standard_args) cmake/FindBoost.cmake:6 (FIND_PACKAGE) CMakeLists.txt:47 (include) -- Configuring incomplete, errors occurred! Regards, Mahmood On Thursday, October 24, 2019, 10:52:37 PM GMT+3:30, Mateusz Loskot <mate...@loskot.net> wrote: You are using very old CMake 3.9 which has no idea about Boost 1.65 https://github.com/Kitware/CMake/blob/v3.9.0/Modules/FindBoost.cmake#L769 Rule #1: Use latest version of CMake, ALWAYS! There is absolutely no reason or excuse to not to use the latest as there are - deb packages available https://apt.kitware.com/ - generic installer for any Linux and Windows Updating CMake is easy-peasy for us lazy programmers with a bit of scripting: https://github.com/mloskot/wsl-config/blob/master/scripts/install-cmake-latest.sh https://github.com/mloskot/wsl-config/blob/master/scripts/install-cmake-latest.ps1 Best regards, -- Mateusz Loskot, http://mateusz.loskot.net -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: https://cmake.org/mailman/listinfo/cmake