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!
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:
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:
Which also makes sense because the "gainputstatic" target shouldn't be created if "GAIN_BUILD_SHARED" is disabled!