Skip to content

Commit

Permalink
Don't use include_directories()
Browse files Browse the repository at this point in the history
  • Loading branch information
dacap committed Dec 24, 2021
1 parent bddbeed commit 8e03c3c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Observable Library
# Copyright (C) 2016-2018 David Capello
# Copyright (C) 2016-2021 David Capello

cmake_minimum_required(VERSION 3.2)

Expand All @@ -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()
Expand Down

0 comments on commit 8e03c3c

Please sign in to comment.