Skip to content
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

Error occurs when Cmake #9

Open
wjq427 opened this issue Dec 15, 2019 · 1 comment
Open

Error occurs when Cmake #9

wjq427 opened this issue Dec 15, 2019 · 1 comment

Comments

@wjq427
Copy link

wjq427 commented Dec 15, 2019

I have installed all the libraries but now the error told me that there's some problem in CMakeList.txt:
CMake Error at cmake/FindDlib.cmake:46 (set_property):
Property INTERFACE_LINK_LIBRARIES may not contain link-type keyword
"optimized". The INTERFACE_LINK_LIBRARIES property may contain
configuration-sensitive generator-expressions which may be used to specify
per-configuration rules.
Call Stack (most recent call first):
F:/CSsoftware/vcpkg-master/scripts/buildsystems/vcpkg.cmake:263 (_find_package)
CMakeLists.txt:21 (find_package)

@wjq427
Copy link
Author

wjq427 commented Dec 15, 2019

As I used windows, I installed vcpkg in my computer and modified the previous cmakeList by add a sentence:
SET(CMAKE_TOOLCHAIN_FILE "F:/CSsoftware/vcpkg-master/scripts/buildsystems/vcpkg.cmake")
to make the libraries installed by vcpkg can be used by the project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant