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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -