diff --git a/CMakeLists.txt b/CMakeLists.txt index e3bda49..3ef4589 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ # Observable Library -# Copyright (C) 2016-2018 David Capello +# Copyright (C) 2016-2021 David Capello cmake_minimum_required(VERSION 3.2) @@ -10,13 +10,12 @@ option(OBSERVABLE_BENCHMARKS "Compile observable benchmarks" OFF) set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) -include_directories(.) - if(UNIX AND NOT APPLE) set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread") endif() add_library(obs obs/connection.cpp) +target_include_directories(obs PUBLIC .) if(OBSERVABLE_TESTS) enable_testing()