mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 19:25:27 +08:00
[cyclonedds] Fix idl generation for the linux (#30235)
This commit is contained in:
parent
a47031a65e
commit
956745569c
@ -1,8 +1,8 @@
|
||||
diff --git a/cmake/Modules/Generate.cmake b/cmake/Modules/Generate.cmake
|
||||
index 0ed67d63..c22d9146 100644
|
||||
index 0ed67d63..9037fe05 100644
|
||||
--- a/cmake/Modules/Generate.cmake
|
||||
+++ b/cmake/Modules/Generate.cmake
|
||||
@@ -157,11 +157,19 @@ function(IDLC_GENERATE_GENERIC)
|
||||
@@ -157,11 +157,25 @@ function(IDLC_GENERATE_GENERIC)
|
||||
endforeach()
|
||||
|
||||
list(APPEND _outputs ${_file_outputs})
|
||||
@ -11,18 +11,24 @@ index 0ed67d63..c22d9146 100644
|
||||
- COMMAND ${_idlc_executable}
|
||||
- ARGS ${_language} ${IDLC_ARGS} ${IDLC_INCLUDE_DIRS} ${_file}
|
||||
- DEPENDS ${_files} ${_depends})
|
||||
+ if(NOT APPLE)
|
||||
+ add_custom_command(
|
||||
+ OUTPUT ${_file_outputs}
|
||||
+ COMMAND ${_idlc_executable}
|
||||
+ ARGS ${_language} ${IDLC_ARGS} ${IDLC_INCLUDE_DIRS} ${_file}
|
||||
+ DEPENDS ${_files} ${_depends})
|
||||
+ else()
|
||||
+ if(APPLE)
|
||||
+ add_custom_command(
|
||||
+ OUTPUT ${_file_outputs}
|
||||
+ COMMAND ${CMAKE_COMMAND}
|
||||
+ ARGS -E env "DYLD_LIBRARY_PATH=$<TARGET_FILE_DIR:${_idlc_executable}>/../../lib" $<TARGET_FILE:${_idlc_executable}> ${_language} ${IDLC_ARGS} ${IDLC_INCLUDE_DIRS} ${_file}
|
||||
+ DEPENDS ${_files} ${_depends})
|
||||
+ elseif(UNIX)
|
||||
+ add_custom_command(
|
||||
+ OUTPUT ${_file_outputs}
|
||||
+ COMMAND ${CMAKE_COMMAND}
|
||||
+ ARGS -E env "LD_LIBRARY_PATH=$<TARGET_FILE_DIR:${_idlc_executable}>/../../lib" $<TARGET_FILE:${_idlc_executable}> ${_language} ${IDLC_ARGS} ${IDLC_INCLUDE_DIRS} ${_file}
|
||||
+ DEPENDS ${_files} ${_depends})
|
||||
+ else()
|
||||
+ add_custom_command(
|
||||
+ OUTPUT ${_file_outputs}
|
||||
+ COMMAND ${_idlc_executable}
|
||||
+ ARGS ${_language} ${IDLC_ARGS} ${IDLC_INCLUDE_DIRS} ${_file}
|
||||
+ DEPENDS ${_files} ${_depends})
|
||||
+ endif()
|
||||
endforeach()
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "cyclonedds",
|
||||
"version-semver": "0.10.2",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "Eclipse Cyclone DDS is a very performant and robust open-source implementation of the OMG DDS specification",
|
||||
"homepage": "https://cyclonedds.io",
|
||||
"license": "EPL-2.0 OR BSD-3-Clause",
|
||||
|
@ -1922,7 +1922,7 @@
|
||||
},
|
||||
"cyclonedds": {
|
||||
"baseline": "0.10.2",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"cyclonedds-cxx": {
|
||||
"baseline": "0.10.2",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "88e7a85946eae33b8e9d686107d7e303afa2a59e",
|
||||
"version-semver": "0.10.2",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "7be6ebe8452bb763bf4dd1374e981ff455b54aaa",
|
||||
"version-semver": "0.10.2",
|
||||
|
Loading…
x
Reference in New Issue
Block a user