Skip to content

Commit

Permalink
fix: require boost only for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianTerhorst committed Apr 14, 2024
1 parent 1674b8e commit 106596d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ include(GNUInstallDirs)

project(pplx VERSION 1.0.0 DESCRIPTION "pplx")

find_package(Boost COMPONENTS thread date_time)
if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
find_package(Boost COMPONENTS thread date_time)
endif(${CMAKE_SYSTEM_NAME} MATCHES "Linux")

option(${PROJECT_NAME}_as_shared "build as a shared library" ON)
set(BUILD_SHARED_LIBS ${${PROJECT_NAME}_as_shared})
Expand Down

0 comments on commit 106596d

Please sign in to comment.