-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CMakeLists linking boost_filesystem not portable #14
Comments
Oh this was hasty. |
Thank you! https://github.com/qPCR4vir/nana-demo/tree/cmake-dev Which uses: https://github.com/qPCR4vir/nana/tree/cmake-dev And the boost related code is: The main problem was that nana-demo CMakeLists was ugly and a duplication of nana CMakeLists. I'm trying to use "modern" cmake with a target-centric approach. It is working correctly with https://nuwen.net/mingw.html which come with gcc 8.1 and with precompiled Boost. |
which has to be related with line 24 in the CMakeLists.txt, which purpose is to find libnana I suppose? (cloned repo again, and switched to branch cmake-dev, run cmake and build in dir i created "build", turning on boost_filesystem) |
Well, I have no idea why this error appear. That line: |
I see, |
The line where the boost libraries are added is not portable
set(NANA_LINKS "${NANA_LINKS} -lboost_filesystem -lboost_system")
My MSYS2 libraries are suffixed with -mt (multithread build).
rather use cmake utilities such as
or
(untested but should be correct)
The text was updated successfully, but these errors were encountered: