Working with Conan

less than 1 minute read

I have been experimenting with Conan on my Mac. Ideally I would like to use it with Owl instead of the manual solution I have right now. This is essentially required if I want to get builds on Travis-CI and Appveyor working

The very first thing I tried was adding boost, however this immediately created a problem. For some reason conanbuildinfo.cmake file is changing/overwriting the binary folder, which causes a problem in Owl’s final build step when it tries to copy the default owl.ini file into the binary’s package.

More specifically I get the error:


[100%] Linking CXX executable ../bin/
Copying owl.ini
cp: /Users/adalidclaure/src/owlbin/Owl/ No such file or directory
make[2]: *** [bin/] Error 1
make[2]: *** Deleting file `bin/'
make[1]: *** [Owl/CMakeFiles/Owl.dir/all] Error 2
make: *** [all] Error 2
[ ~/src/owlbin ]  

Which is caused simply by adding the following two lines to Owl’s root CMakeLists.txt file: