-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
corrosion_install: fix reconfiguring breaking EXPORTs (#555)
* corrosion_install: Move error checking into outer scope It seems this was accidentally put on the check for a `TARGET ${TARGET_NAME}-static` lib instead of the `TARGET_TYPE STREQUAL *` * corrosion_install: Add guard and use CMAKE_CURRENT_BINARY_DIR It seems something has been switched up and it's using CMAKE_BINARY_DIR instead of CMAKE_CURRENT_BINARY_DIR. Additionally, without a guard CMake will write the static/shared definitions on every reconfigure, making the config file fail. * corrosion_install: Require EXPORT_NAME to be unique. Switch back to CMAKE_BINARY_DIR as documented by the function signature. If we anyway require a globally unique EXPORT_NAME, then we don't need to use the current binary dir, making the file easier to find. --------- Co-authored-by: Gtker <[email protected]> Co-authored-by: Jonathan Schwender <[email protected]>
- Loading branch information
1 parent
c117c37
commit 97164ee
Showing
1 changed file
with
19 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters