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

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -