cmake: Fix inconsistent endif() argument

The argument in the corresponding if() was changed in
commit ae76a38. CMake emits a warning.
Modern CMake style guides advice on ommitting endif()
arguments.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7292f3c..7328c58 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -66,7 +66,7 @@
         message(WARNING "Run: `git submodule update --init` to build tests.")
         set(CPPDAP_BUILD_TESTS OFF)
     endif()
-endif(CPPDAP_BUILD_TESTS)
+endif()
 
 ###########################################################
 # JSON library