sml icon indicating copy to clipboard operation
sml copied to clipboard

Boost-dependency in CMakeLists.txt should depend on SML_BUILD_BENCHMARKS

Open stullemitbrot opened this issue 2 years ago • 1 comments

https://github.com/boost-ext/sml/blob/03eacdb27fcd209472f3702ef94a7cbca699f185/CMakeLists.txt#L79

find_package(Boost REQUIRED) and target_link_libraries(sml INTERFACE Boost::boost) should be wrapped in if(${SML_BUILD_BENCHMARKS}) ... endif() since the l in sml stands for lite ... ;-)

stullemitbrot avatar Jun 21 '22 09:06 stullemitbrot

I made an attempt at fixing this in #507 since I encountered this problem when trying to include sml in a project using FetchContent.

aunsbjerg avatar Jun 23 '22 12:06 aunsbjerg