I'm trying to compile a tool which a teacher of mine gave me. It uses the Boost libraries (which I have set up and set the environment variables) and Boost is found by Cmake.
However, Cmake tells me it could not find the library named "boost_program_options". The output of cmake tells me that it is only looking for files with names "libboost_program_options-vc110-mt-1_61". In my Boost directory I'm only able to find files named "libboost_program_options-vc140-mt-1_61" which are all contained in D:\local\boost_1_61_0\lib64-msvc-14.0 (which I set BOOST_LIBRARYDIR to). BOOST_ROOT ist set to D:\local\boost_1_61_0 and BOOST_INCLUDEDIR is set to D:\local\boost_1_61_0\boost. So, why is Cmake looking for the wrong files?
The Cmake file I was given is
project(generator)
cmake_minimum_required(VERSION 2.8)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
set(BOOST_MIN_VERSION "1.55.0")
find_package(Boost COMPONENTS program_options REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
aux_source_directory(. SRC_LIST)
add_executable(${PROJECT_NAME} ${SRC_LIST})
set(CMAKE_CXX_FLAGS "-lboost_program_options")
if(UNIX)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -std=gnu++0x")
endif()