Skip to content

Commit

Permalink
Removed not needed option in CMakeLists.txt ICC_BUILD_LIBRARY
Browse files Browse the repository at this point in the history
  • Loading branch information
redradist committed May 30, 2021
1 parent 1cb5490 commit 37db681
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 1 addition & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
cmake_minimum_required(VERSION ${CMAKE_VERSION})
project(ICC)

option(ICC_BUILD_LIBRARY "Build ICC as a library" OFF)
option(ICC_BUILD_SHARED "Build ICC as a shared library" OFF)
option(ICC_BUILD_TESTS "Build tests" OFF)

Expand Down Expand Up @@ -46,10 +45,6 @@ if(NOT EXISTS libs/commonapi_tools)
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR})
endif()

if(ICC_BUILD_LIBRARY)
add_definitions(-DICC_LIBRARY)
endif()

if(ICC_BUILD_SHARED)
add_library(${PROJECT_NAME} SHARED ${ICC_SOURCE_FILES})
target_compile_definitions(${PROJECT_NAME} PUBLIC ICC_SHARED_LIBRARY)
Expand All @@ -58,6 +53,7 @@ else()
add_library(${PROJECT_NAME} STATIC ${ICC_SOURCE_FILES})
set(ICC_LIBRARY_NAME ${PROJECT_NAME})
endif()
target_compile_definitions(${ICC_LIBRARY_NAME} PRIVATE -DICC_LIBRARY)
target_include_directories(${ICC_LIBRARY_NAME}
PUBLIC ${ICC_INCLUDE_DIR}
PRIVATE ${ICC_INCLUDE_DIR}/icc/_private
Expand Down
6 changes: 6 additions & 0 deletions src/icc/os/platforms/posix/EventLoopImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
#ifndef POSIX_EVENTLOOPIMPL_HPP
#define POSIX_EVENTLOOPIMPL_HPP

extern "C" {

#include <sys/select.h>

}

#include <icc/os/EventLoop.hpp>

#include "Common.hpp"
Expand Down

0 comments on commit 37db681

Please sign in to comment.