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
But it's unclear how GEOS_SOURCE_DIR would be set. My understanding is that a variable called geos_SOURCE_DIR would be defined after CPMAddPackage is called. Is there a way to get the source directory beforehand?
I don't actually need GEOS, but another library with the same problem, where I need to add to the CMAKE_MODULE_PATH before calling CPMAddPackage.
The text was updated successfully, but these errors were encountered:
Append to CMAKE_MODULE_PATH with now populated _SOURCE_DIR
Add the project with add_subdirectory
But this feels pretty hacky. I guess ideally the project would set the CMAKE_MODULE_PATH correctly, but it would also be nice if there is a better way to manually set it, that plays nicely with CPM.
The snippit is currently:
But it's unclear how
GEOS_SOURCE_DIR
would be set. My understanding is that a variable calledgeos_SOURCE_DIR
would be defined afterCPMAddPackage
is called. Is there a way to get the source directory beforehand?I don't actually need GEOS, but another library with the same problem, where I need to add to the CMAKE_MODULE_PATH before calling CPMAddPackage.
The text was updated successfully, but these errors were encountered: