From 15665faeba4b607e45e75b2eb3b6421cfc6d2da8 Mon Sep 17 00:00:00 2001 From: Even Rouault Date: Fri, 25 Oct 2024 21:22:47 +0200 Subject: [PATCH] CMake: add manual BUILD_TESTING option 1f8573b4e979eeb4d5988ef79d24d11cdf221627 removed include(CTest) but that module was useful to define the BUILD_TESTING option. Manually define it --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 838060c..005e093 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,6 +43,8 @@ else() option(USE_RPATH "Use -rpath when linking libraries, executables" ON) endif() +option(BUILD_TESTING "Build the testing tree." ON) + # In windows all created dlls are gathered in the dll directory # if you add this directory to your PATH all shared libraries are available if(BUILD_SHARED_LIBS AND (WIN32 OR CYGWIN))