cmake: support the standard cmake testing option

This commit is contained in:
Alexandre Bouvier 2023-01-05 05:00:44 +01:00
parent d0fe27708e
commit 7a2bd13f5b
2 changed files with 8 additions and 4 deletions

View file

@ -5,6 +5,9 @@
# some of its variables, which is only possible in 3.13+
set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
# Disable tests in all externals supporting the standard option name
set(BUILD_TESTING OFF)
# xbyak
if ((ARCHITECTURE_x86 OR ARCHITECTURE_x86_64) AND NOT TARGET xbyak::xbyak)
add_subdirectory(xbyak EXCLUDE_FROM_ALL)