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

find_package(Servus REQUIRED) does not work correctly on windows. #88

Open
cveezee opened this issue Dec 7, 2018 · 1 comment
Open

Comments

@cveezee
Copy link

cveezee commented Dec 7, 2018

I am trying to use the Servus lib in a test app.
On windows i face the following issue
when i use find_package(Servus REQUIRED) in cmake file i get Servus_FOUND but the
Servus_INCLUDE_DIRS do no get populated.
on building i get
fatal error C1083: Cannot open include file: 'servus/servus.h': No such file or directory

However if i manually add the include DIRS to the cmake file am able to build and use servus in the app.

any idea how can i get it to work using just find_package()?

@umlaeute
Copy link

umlaeute commented Mar 8, 2023

at least here on Linux it works like this:

find_package(Servus REQUIRED)
target_include_directories(MyProject PRIVATE Servus)
target_link_libraries(MyProject Servus)

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

2 participants