This is an automated email from the ASF dual-hosted git repository.

dmeden pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new 8219dffe09 CMake. Fix yamlcpp version definition when an external yaml 
lib is set. (#11277)
8219dffe09 is described below

commit 8219dffe09e1fea2038e8ca15c9c635042d057a8
Author: Damian Meden <[email protected]>
AuthorDate: Mon Apr 22 17:32:28 2024 +0200

    CMake. Fix yamlcpp version definition when an external yaml lib is set. 
(#11277)
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 59e0e7828c..9f5325ee23 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -340,7 +340,7 @@ set(HAVE_NCURSES_NCURSES_H ${CURSES_HAVE_NCURSES_NCURSES_H})
 if(EXTERNAL_YAML_CPP)
   message(STATUS "Looking for external yaml-cpp")
   find_package(yaml-cpp "0.8.0" REQUIRED)
-  set(YAMLCPP_LIB_VERSION yaml-cpp_VERSION)
+  set(YAMLCPP_LIB_VERSION ${yaml-cpp_VERSION})
   find_package_message(
     yaml-cpp "Found yaml-cpp: ${yaml-cpp_CONFIG} (found version 
\"${yaml-cpp_VERSION}\")" "${yaml-cpp_CONFIG}"
   )

Reply via email to