freebsd-ports/net-im/toxext/files/patch-CMakeLists.txt
Yuri Victorovich 5308f4b529 net-im/toxext: Add test target
Only build tests when tests are run.
2022-03-21 10:51:15 -07:00

14 lines
341 B
Text

--- CMakeLists.txt.orig 2022-03-21 17:46:44 UTC
+++ CMakeLists.txt
@@ -15,7 +15,9 @@ endfunction()
add_subdirectory(src)
add_subdirectory(mock)
-enable_testing()
-add_subdirectory(test)
+if (BUILD_TESTS)
+ enable_testing()
+ add_subdirectory(test)
+endif()
install(EXPORT ToxExtConfig DESTINATION lib/cmake/ToxExt NAMESPACE ToxExt::)