Skip to content

Commit

Permalink
Merge pull request #4290 from rouault/remove_include_ctest
Browse files Browse the repository at this point in the history
CMake: use enable_testing() instead of include(CTest)
  • Loading branch information
rouault authored Nov 4, 2024
2 parents 64164de + a67091e commit 4857419
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -341,9 +341,10 @@ set(PROJ_DATA_PATH "${CMAKE_INSTALL_FULL_DATADIR}/proj")
################################################################################
# Tests
################################################################################
include(CTest)

option(BUILD_TESTING "Build the testing tree." ON)
if(BUILD_TESTING)
enable_testing()
include(ProjTest)
else()
message(STATUS "Testing disabled")
Expand Down

0 comments on commit 4857419

Please sign in to comment.