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 <BoostTestTargetConfig.h>"), 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
This commit is contained in:
parent
56fb81dc03
commit
86fb1ed00f
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user