You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using CMake, no INSTALL target is created if crossguid is not the root project.
We're in this situation because we use crossguid as a submodule of a parent CMake project (however we still need the INSTALL target).
if (${CMAKE_SOURCE_DIR}STREQUAL${CMAKE_CURRENT_SOURCE_DIR})
Why is that condition required?
I've seen other projects adding an option to toggle installation on or off (eg. "CROSSGUID_INSTALL_ENABLED").
I could propose a PR with something similar if that's ok for you.
The text was updated successfully, but these errors were encountered:
merwaaan
changed the title
No CMake install target whe nCrossguid is not the root project
No CMake install target when Crossguid is not the root project
Jan 19, 2022
Hi @graeme-hill
When using CMake, no INSTALL target is created if crossguid is not the root project.
We're in this situation because we use crossguid as a submodule of a parent CMake project (however we still need the INSTALL target).
This seems to be due to this line:
crossguid/CMakeLists.txt
Line 58 in ca1bf4b
Why is that condition required?
I've seen other projects adding an option to toggle installation on or off (eg. "CROSSGUID_INSTALL_ENABLED").
I could propose a PR with something similar if that's ok for you.
The text was updated successfully, but these errors were encountered: