-
Notifications
You must be signed in to change notification settings - Fork 41
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
external spdlog package not found #53
Comments
Actually it is supposed to support it, as seen here in the Assuming that This is usually not a problem for Linux (or maybe just missed out) since the I will try to investigate a bit more, and for now I think this is likely a bug. |
I looked at the spdlogConfigTargets.cmake generated by spdlog module it creates 2 targets target_link_libraries(spdlog_setup When I changed it to |
I guess you are using trying to use Currently This would require a new release tag (i.e. breaking change) to support |
Yes you are right - Not long time ago I have updated the spdlog in my environment to 1.4.2 BTW I continue to use the headers-only variant of the spdlog library to avoid possibility that shared library flavor will break something already working. My final working change is using |
I have build spdlog library separately and copied the exported cmake package of it.
I tried to build spdlog_setup librabies unittests using the -DCMAKE_PREFIX_PATH= command line switch.
cmake has found the package correctly and initialized the spdlog_DIR:PATH= to the correct value
But the "AdditionalIncludeDirectories" entry inside the vcxproj does not includes path to spdlog include folder.
As a result the build of unittest project fails since the spdlog inlude is not found
Full command line
cmake.exe -H. -B_builds "-GVisual Studio 15 2017" -DCMAKE_INSTALL_PREFIX=package -DCMAKE_BUILD_TYPE=Release -DSPDLOG_SETUP_INCLUDE_UNIT_TESTS=ON -DCMAKE_PREFIX_PATH=d:\spdlog\release.32
cmake.exe --build _builds --config Release
Compilation error
include\spdlog_setup\details\conf_impl.h(20): fatal error C10
83: Cannot open include file: 'spdlog/spdlog.h': No such file or directory [testing_ut
2\spdlog_setup_builds\spdlog_setup_unit_test.vcxproj]
Is the building of spdlog_setup using external spdlog library supported?
The text was updated successfully, but these errors were encountered: