Skip to content
This repository was 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

@jpvanoosten

Description

@jpvanoosten

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions