Error linking Boost with CMake
I am using CLion on OS X 10.10.5 (Yosemite) and trying to use the logging boost (1.58.0) library. I installed boost using brew install boost . I checked that the boost libraries are 64-bit and so is my executable. My CMakeLists.txt looks like this: set(CMAKE_VERBOSE_MAKEFILE on) cmake_minimum_required(VERSION 3.3) project(gmch) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set(Boost_USE_MULTITHREADED ON) find_package(Boost 1.58.0 COMPONENTS log REQUIRED) include_directories(${Boost_INCLUDE_DIR}) set(SOURCE_FILES main.cpp util/timing.hpp) add_executable(gmch ${SOURCE_FILES}) target_link