From 62bfacfbf766b561d2e64952b677b34ac11fa0db Mon Sep 17 00:00:00 2001 From: Alankrit Verma Date: Sun, 5 May 2024 05:36:52 +0530 Subject: [PATCH] Fixed dependency issues + Added conditionals to support apple --- CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c2b3b2f..282de4b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -37,9 +37,12 @@ set_target_properties(trainingdata-tool PROPERTIES CXX_EXTENSIONS ON ) -if (UNIX) +if (UNIX AND NOT APPLE) target_link_libraries(trainingdata-tool -lpthread -lstdc++fs) -endif(UNIX) +elseif(APPLE) + target_link_libraries(trainingdata-tool -lpthread) +endif() + find_package(Boost 1.65.0)