cucumber / cucumber-cpp

Support for writing Cucumber step definitions in C++
MIT License
308 stars 131 forks source link

Fix #214: Better integration with CMake 3.13 (CMP0077) #215

Closed ghost closed 5 years ago

ghost commented 5 years ago

Summary

This allows to use regular variables to configure cucumber-cpp when it's connected as a sub-directory (without having to redefine options or setting cache entries).

CMP0077: option() honors normal variables

Example

set (CUKE_USE_STATIC_GTEST ON)
add_subdirectory (
    ${cucumber_cpp_SOURCE_DIR}
    ${cucumber_cpp_BINARY_DIR}
)

Fixes: #214

coveralls commented 5 years ago

Coverage Status

Coverage remained the same at 62.814% when pulling b7ebdb6a4d5dbffbcc00785c64fc482111a17d9d on sergey-bon:fix-issue-214 into 9ac02a4cf84b082a66415f6b6f2a32867ba70057 on cucumber:master.