Skip to content

Commit 56035a0

Browse files
another fix
1 parent 99c67d9 commit 56035a0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ endif()
313313
endif()
314314

315315
# Only Protobuf >= 6 needs Abseil
316-
#if (Protobuf_VERSION VERSION_GREATER_EQUAL 6.0)
316+
if (Protobuf_VERSION VERSION_GREATER_EQUAL 6.0)
317317
# Some distros export as "Abseil::"
318318
find_package(absl CONFIG QUIET)
319319
if (NOT absl_FOUND)
@@ -340,9 +340,9 @@ endif()
340340
"Install Abseil (macOS: 'brew install abseil', Ubuntu: 'sudo apt-get install libabsl-dev'), "
341341
"or use Protobuf < 6.")
342342
endif()
343-
#else()
344-
# message(STATUS "Protobuf < 6 detected; skipping Abseil linking.")
345-
#endif()
343+
else()
344+
message(STATUS "Protobuf < 6 detected; skipping Abseil linking.")
345+
endif()
346346

347347
# On Linux, it needs to link OpenSSL
348348
if(UNIX AND NOT APPLE)

0 commit comments

Comments
 (0)