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

Linking to a directory causes an error with cmake #166

Closed
mrexodia opened this issue Dec 3, 2024 · 0 comments · Fixed by #168
Closed

Linking to a directory causes an error with cmake #166

mrexodia opened this issue Dec 3, 2024 · 0 comments · Fixed by #168

Comments

@mrexodia
Copy link
Contributor

mrexodia commented Dec 3, 2024

[target.mylib]
type = "static"
sources = ["mylib/lib.cpp"]

[target.foo]
type = "executable"
sources = ["main.cpp"]
link-libraries = ["mylib"]

If $(pwd)/mylib is a directory cmkr generates ${CMAKE_CURRENT_SOURCE_DIR}/mylib and CMake (rightfully) errors out.

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

Successfully merging a pull request may close this issue.

1 participant