Skip to content
This repository has been archived by the owner on Sep 7, 2021. It is now read-only.

Cannot specify link libraries for target "gainput" which is not built by this project. #78

Open
jpvanoosten opened this issue Oct 6, 2020 · 1 comment

Comments

@jpvanoosten
Copy link

jpvanoosten commented Oct 6, 2020

Surprising that I haven't seen this issue reported yet, but if I disable "GAIN_BUILD_SHARED" I get the following error when trying to configure the project with CMake:

CMake Error at lib/CMakeLists.txt:40 (target_link_libraries):
  Cannot specify link libraries for target "gainput" which is not built by
  this project.

Which makes sense since the "gainput" target shouldn't be created if "GAIN_BUILD_SHARED" is disabled.

Similarly, if I disable "GAIN_BUILD_STATIC" I get the following error when trying to configure the project with CMake:

CMake Error at lib/CMakeLists.txt:41 (target_link_libraries):
  Cannot specify link libraries for target "gainputstatic" which is not built
  by this project.

Which also makes sense because the "gainputstatic" target shouldn't be created if "GAIN_BUILD_SHARED" is disabled!

@jpvanoosten
Copy link
Author

This is solved in a pull request: #79

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

No branches or pull requests

1 participant