--- python/hawkey/CMakeLists.txt.orig	2025-10-20 13:41:49 UTC
+++ python/hawkey/CMakeLists.txt
@@ -50,6 +50,8 @@ install(TARGETS _hawkeymodule LIBRARY DESTINATION ${PY
 install(FILES __init__.py DESTINATION ${PYTHON_INSTALL_DIR}/hawkey)
 install(TARGETS _hawkeymodule LIBRARY DESTINATION ${PYTHON_INSTALL_DIR}/hawkey)
 
+if (BUILD_TESTING)
 IF (WITH_TESTS)
+endif()
 add_subdirectory(tests)
 ENDIF()
