Skip to content

Commit

Permalink
Try not linking with absl_check
Browse files Browse the repository at this point in the history
  • Loading branch information
twestley committed Sep 19, 2024
1 parent 38061c1 commit 8dfbda1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ add_library(adakCore
GeometricDisconnect.cpp
SystemClock.cpp)

# Abseil appears to require gmock
find_package(GTest REQUIRED)

# Newer versions of protobuf require abseil
find_package(absl REQUIRED)

Expand All @@ -37,7 +34,12 @@ target_include_directories(adakCore PUBLIC ${PROJECT_SOURCE_DIR}/include)
add_executable(adak main.cpp ../include/config.hpp)
target_include_directories(adak PRIVATE ${PROJECT_SOURCE_DIR}/include)

set(COMMON_LIBRARIES adakCore messages absl::absl_check)
if (APPLE)
set(COMMON_LIBRARIES adakCore messages absl::absl_check)
else()
set(COMMON_LIBRARIES adakCore messages)
endif()

# Determine whether we need to add stdc++fs.
# Inspired by https://stackoverflow.com/questions/54290254/problem-adding-stdfilesystem-to-cmake-project
try_compile(HAS_FS "${CMAKE_BINARY_DIR}/temp"
Expand Down

0 comments on commit 8dfbda1

Please sign in to comment.