-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Always make idlc_generate available in install
With cross-builds, and now therefore also static builds, one does need IDLC. Installing Generate.cmake unconditionally means one can always write idlc_generate(TARGET konijn FILES wortel.idl) and one only has to make sure that CMake can find "idlc" and the backend library. Adding the host build to the CMAKE_PREFIX_PATH as in: cmake -DCMAKE_PREFIX_PATH=.../target-install\;.../host-install results in CMake finding the CycloneDDS package for the target in the target-install directory while also looking (and finding) idlc and the backend somewhere in the host-install directory. Signed-off-by: Erik Boasson <[email protected]>
- Loading branch information
Showing
3 changed files
with
5 additions
and
8 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,4 @@ | |
@PACKAGE_INIT@ | ||
|
||
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]") | ||
if(TARGET CycloneDDS::idlc) | ||
include("${CMAKE_CURRENT_LIST_DIR}/idlc/Generate.cmake") | ||
endif() | ||
include("${CMAKE_CURRENT_LIST_DIR}/idlc/Generate.cmake") |
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