aboutsummaryrefslogtreecommitdiff
path: root/ports/xalan-c/fix-linux-no-bin.patch
blob: 3d468a1c58be96140b5ad7aff707e99c6534df86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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(