From 8e03c3cb060120b25517503e6c1d9072686d1cd3 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 23 Dec 2021 21:36:58 -0300 Subject: [PATCH] Don't use include_directories() --- CMakeLists.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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()