Fix CMake Warning

This commit is contained in:
Pain
2026-04-16 07:39:14 -07:00
parent fb3d4a5fb2
commit 95b8a2ca7a
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -5,9 +5,9 @@
# PCRE2_INCLUDE_DIRS
# PCRE2_LIBRARIES
include(FindPkgConfig)
find_package(PkgConfig QUIET)
if(PKG_CONFIG_FOUND)
if(PkgConfig_FOUND)
pkg_check_modules(_PCRE2 QUIET libpcre2-8)
endif()
+2
View File
@@ -18,6 +18,8 @@ function(ss_add_test name sources libs)
add_executable(${name} ${sources})
target_compile_definitions(${name} PRIVATE -DHAVE_CONFIG_H)
target_link_libraries(${name} ${libs})
# Keep assertions enabled for tests even in Release builds.
target_compile_options(${name} PRIVATE -UNDEBUG)
add_test(NAME ${name} COMMAND ${name})
endfunction()