[NFC] Fix a misleading comment CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION

This commit is contained in:
Tobias Hieta 2022-08-25 09:55:52 +02:00
parent 879f5118fc
commit 5218a542ac
No known key found for this signature in database
GPG Key ID: 44F2485E45D59042
1 changed files with 6 additions and 2 deletions

View File

@ -3,11 +3,15 @@
# LLVM_VERSION_MAJOR.
# Please also see clang/tools/libclang/libclang.map
# This option defaults to CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION
# to ON - which means that it by default matches CLANG_VERSION_MAJOR
#
# TODO: This should probably not be a option going forward but we
# we should commit to a way to do it. But due to getting this out
# in LLVM 15.x we opted for a option.
if(NOT CLANG_FORCE_MATCHING_LIBCLANG_SOVERSION)
# default is to use the SOVERSION according to ABI...
set(LIBCLANG_SOVERSION 13)
else()
# ... unless explicily overridden
set(LIBCLANG_SOVERSION ${CLANG_VERSION_MAJOR})
endif()