cmake - Temporarily link with Boost libraries in a test -
i have cmakelists.txt file containing simple check_cxx_source_compiles test. test need add boost libraries when links, test. have checked boost library exists.
can done? variable(s) should add ${boost_libraries} to?
the variable looking cmake_required_libraries:
list(append cmake_required_libraries ${boost_libraries}) check_cxx_source_compiles("int main() { ... }" my_code_compiles)
Comments
Post a Comment