build: fix cmakelists if statement

This commit is contained in:
light7734 2025-07-21 12:37:46 +03:30
parent 6d41482576
commit aa6967fa40
Signed by: light7734
GPG key ID: 8C30176798F1A6BA

View file

@ -16,7 +16,7 @@ endif ()
add_option(ENABLE_LLVM_COVERAGE "Enables the code coverage instrumentation for clang")
if(ENABLE_LLVM_COVERAGE)
if (CMAKE_CXX_COMPILER_ID NOT STREQUAL "Clang")
if (NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
message(FATAL_ERROR "ENABLE_LLVM_COVERAGE only supports the clang compiler")
endif ()