From 951240a67269361905cd79537343f1d4d1b48143 Mon Sep 17 00:00:00 2001 From: Martin Beseda <martinbeseda@seznam.cz> Date: Thu, 13 Sep 2018 12:48:58 +0200 Subject: [PATCH] Testing own FindBoost.cmake --- FindBoost.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/FindBoost.cmake b/FindBoost.cmake index dccea206..1f062515 100644 --- a/FindBoost.cmake +++ b/FindBoost.cmake @@ -135,14 +135,15 @@ foreach(LIBNAME ${REQUESTED_BOOST_LIBS}) NO_DEFAULT_PATH ) + message("${LIBNAME} ${${LIBNAME}}") + # Check, if the Boost component was found - if("${LIBNAME}" STREQUAL "${LIBNAME}-NOTFOUND") + if("${${LIBNAME}}" STREQUAL "${LIBNAME}-NOTFOUND") message(FATAL_ERROR "Boost library ${LIBNAME} was NOT found!\ Please, set variable BOOST_LIBRARYDIR to the correct path and check the library names\ format in your Boost installation.") endif() - message("${LIBNAME} ${${LIBNAME}}") # Make the target of the same name as the library #add_library(${LIBNAME}_tar STATIC IMPORTED) -- GitLab