Skip to content

Commit

Permalink
Do not report missing stdc++fs on apple/clang (avast#1002)
Browse files Browse the repository at this point in the history
macOS/clang never had the stdc++fs library that is required on some
systems using gcc. The message is therefore confusing when it
appears on a macos device and may be misleading when solving
for a compilation error.

This commit removes the message on macOS builds.
  • Loading branch information
Peter Kubov committed Aug 25, 2021
1 parent a90814b commit 9e15ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ elseif(UNIX AND (NOT APPLE) AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
stdc++fs
)
# Library not found -> hope compiler does not need it.
else()
elseif(NOT APPLE)
message(STATUS "-- Library stdc++fs NOT found -> linking utils without stdc++fs library")
endif()

Expand Down

0 comments on commit 9e15ed3

Please sign in to comment.