diff --git a/ext/strawberry-tagreader/CMakeLists.txt b/ext/strawberry-tagreader/CMakeLists.txt index 0d1fcb858..683cc40cb 100644 --- a/ext/strawberry-tagreader/CMakeLists.txt +++ b/ext/strawberry-tagreader/CMakeLists.txt @@ -49,7 +49,7 @@ if(USE_TAGPARSER AND TAGPARSER_FOUND) target_link_libraries(strawberry-tagreader PRIVATE ${TAGPARSER_LIBRARIES}) endif() -if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") +if(FREEBSD) target_link_libraries(strawberry-tagreader PRIVATE execinfo) endif()