From 421b675bc848cafdfa6c31de75f8d57d7e1b9477 Mon Sep 17 00:00:00 2001 From: alex-thiessen-for-siemens <149499004+alex-thiessen-for-siemens@users.noreply.github.com> Date: Tue, 19 Dec 2023 14:34:02 +0100 Subject: [PATCH] CMakeLists.txt: Fix condition --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8114ae9..bb195dc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,7 +38,7 @@ cmake_dependent_option(YAML_MSVC_SHARED_RT set(YAML_CPP_INSTALL_CMAKEDIR "${CMAKE_INSTALL_LIBDIR}/cmake/yaml-cpp" CACHE STRING "Path to install the CMake package to") -if (YAML_CPP_BUILD_TESTS && CMAKE_VERSION VERSION_GREATER_EQUAL "3.10") +if (YAML_CPP_BUILD_TESTS AND CMAKE_VERSION VERSION_GREATER_EQUAL "3.10") find_program(CMAKE_CXX_CPPCHECK NAMES cppcheck) if (CMAKE_CXX_CPPCHECK) option(YAML_CPP_CHECK "Run cppcheck static code analysis" ON)