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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -