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

xwin_add_executable fails for specific project structure #22

Open
JeromeDesfieux opened this issue Oct 27, 2022 · 0 comments
Open

xwin_add_executable fails for specific project structure #22

JeromeDesfieux opened this issue Oct 27, 2022 · 0 comments

Comments

@JeromeDesfieux
Copy link
Contributor

If xwin_add_executable() is called from another folder than the one doing the inclusion of CrossWindow through add_subdirectory then the file provided by XMAIN_SOURCES is not found.
This comes from the fact that the file is defined relatively (https://github.com/alaingalvan/CrossWindow/blob/master/CMakeLists.txt#L116)
It makes sense to use relative for building CrossWindow lib but I think it is quite fragile to include a source into any existing project which might be placed anywhere.

In my situation, removing RELATIVE works.

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