diff --git a/docs/src/background/redundancy.rst b/docs/src/background/redundancy.rst index 05ff49f0..73297c14 100644 --- a/docs/src/background/redundancy.rst +++ b/docs/src/background/redundancy.rst @@ -60,7 +60,7 @@ then the minimal ``CMakeLists.txt`` file looks like: .. literalinclude:: /../../tests/docs/bare_bones_cmake/CMakeLists.txt :language: CMake - :lines: 15 + :lines: 18-20 :linenos: :lineno-start: 1 diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index a145d317..6205df57 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -13,6 +13,10 @@ include(cmake_test/cmake_test) set(BUILD_TESTING "${build_testing_old}" CACHE BOOL "" FORCE) -# ct_add_dir("cpp") -ct_add_dir("cmaize") +ct_add_dir( + "cmaize" + USE_REL_PATH_NAMES + CMAKE_OPTIONS + -DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE +) add_subdirectory(docs) diff --git a/tests/docs/bare_bones_cmake/CMakeLists.txt b/tests/docs/bare_bones_cmake/CMakeLists.txt index b40623c3..1bb7717a 100644 --- a/tests/docs/bare_bones_cmake/CMakeLists.txt +++ b/tests/docs/bare_bones_cmake/CMakeLists.txt @@ -12,6 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. +# Minimum version required as of CMake 4.0 +# (see https://cmake.org/cmake/help/latest/policy/CMP0000.html). +# Match this with minimum version from 'CMaize/CMakeLists.txt'. +cmake_minimum_required(VERSION 3.5) # Required as of CMake 4.0 + add_executable(hello_world hello_world.cpp) # The below lines of code are used in unit testing this code example