vcpkg/ports/xalan-c/fix-linux-no-bin.patch
Robert Schumacher 92dc30ff52
[vcpkg] Check in baseline results for CI builds (#9203)
* [vcpkg] Check in initial baseline

* [vcpkg] Baseline update

* [vcpkg] Further baseline updates

* [vcpkg] Update baseline

* [vcpkg] Update baseline

* [vcpkg] Update baseline

* [vcpkg] Update baseline

* [xalan-c] Fix flaky build for non-Windows hosts
2019-12-06 02:18:47 -08:00

21 lines
663 B
Diff

diff --git a/src/xalanc/Utils/CMakeLists.txt b/src/xalanc/Utils/CMakeLists.txt
index 2d78685..72b611b 100644
--- a/src/xalanc/Utils/CMakeLists.txt
+++ b/src/xalanc/Utils/CMakeLists.txt
@@ -41,11 +41,15 @@ add_custom_target(locale ALL)
set_target_properties(locale PROPERTIES FOLDER "Message Library")
# workaround for case of missing xerces-c dll
+if(CMAKE_HOST_WIN32)
if(EXISTS ${XercesC_INCLUDE_DIR}/../bin)
set(MsgCreator_WD $<TARGET_FILE_DIR:XercesC::XercesC>/../bin)
else()
set(MsgCreator_WD "${XSL_NLS_GEN_DIR}")
endif()
+else()
+ set(MsgCreator_WD "${PROJECT_BINARY_DIR}")
+endif()
if(msgloader STREQUAL "inmemory")
add_custom_command(