From 86fb1ed00fdd23e3df60da64f9b03111a774c636 Mon Sep 17 00:00:00 2001 From: Alessandro Menti Date: Thu, 8 Dec 2016 11:47:18 +0100 Subject: [PATCH] BoostTestTargets.cmake: fix a wrong include test BoostTestTargets.cmake requires the CMake-configurable form of the Boost test framework to be used (i.e. "#include "), and checks each test source code file for this, outputting a warning in case this requirement is not met. Unfortunately, a conditional in the check is badly specified (the CMake variable syntax is not followed), so the warning is emitted even when it should not be. This patch fixes this bug and restores the correct behavior. Submitted upstream at https://github.com/rpavlik/cmake-modules/pull/44 --- CMakeModules/BoostTestTargets.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeModules/BoostTestTargets.cmake b/CMakeModules/BoostTestTargets.cmake index a858cfa6..3da31265 100644 --- a/CMakeModules/BoostTestTargets.cmake +++ b/CMakeModules/BoostTestTargets.cmake @@ -157,7 +157,7 @@ function(add_boost_test _name) endforeach() if(NOT _boostTestTargetsNagged${_name} STREQUAL "${includeType}") - if("includeType" STREQUAL "CONFIGURED") + if("${includeType}" STREQUAL "CONFIGURED") message(STATUS "Test '${_name}' uses the CMake-configurable form of the boost test framework - congrats! (Including File: ${includeFileLoc})") elseif("${includeType}" STREQUAL "INCLUDED")