From 106596da8ea53c2339a117494f0d42a95019f859 Mon Sep 17 00:00:00 2001 From: Fabian Terhorst Date: Sun, 14 Apr 2024 19:06:37 +0200 Subject: [PATCH] fix: require boost only for linux --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9b0917e0d..1c3ce9eb8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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})