You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ts...@apache.org on 2020/09/02 06:53:00 UTC

[logging-log4cxx] branch logcxx_510_cmake_vs2019_compat updated: Handle XMLLIB_DLL the same like the corresponding ones for APR and APU. This makes XMLLIB_DLL configurable in VS.

This is an automated email from the ASF dual-hosted git repository.

tschoening pushed a commit to branch logcxx_510_cmake_vs2019_compat
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git


The following commit(s) were added to refs/heads/logcxx_510_cmake_vs2019_compat by this push:
     new 37d3da3  Handle XMLLIB_DLL the same like the corresponding ones for APR and APU. This makes XMLLIB_DLL configurable in VS.
37d3da3 is described below

commit 37d3da3cadfc46f1d4414a9ffa14c92fd0f9701b
Author: Thorsten Schöning <ts...@am-soft.de>
AuthorDate: Wed Sep 2 08:52:43 2020 +0200

    Handle XMLLIB_DLL the same like the corresponding ones for APR and APU. This makes XMLLIB_DLL configurable in VS.
---
 src/cmake/FindAPR-Util.cmake | 5 +++--
 src/test/cpp/CMakeLists.txt  | 3 +--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/cmake/FindAPR-Util.cmake b/src/cmake/FindAPR-Util.cmake
index bb4e951..76d4c3b 100644
--- a/src/cmake/FindAPR-Util.cmake
+++ b/src/cmake/FindAPR-Util.cmake
@@ -48,11 +48,12 @@ else()
     if (APU_STATIC OR NOT BUILD_SHARED_LIBS)
       set(APR_UTIL_COMPILE_DEFINITIONS APU_DECLARE_STATIC)
       find_library(APR_UTIL_LIBRARIES NAMES aprutil-1)
-      find_library(XMLLIB_LIBRARIES NAMES libexpat)
-      find_program(XMLLIB_DLL libexpat.dll)
+      find_library(XMLLIB_LIBRARIES NAMES expat)
     else()
       find_library(APR_UTIL_LIBRARIES NAMES libaprutil-1)
       find_program(APR_UTIL_DLL libaprutil-1.dll)
+      find_library(XMLLIB_LIBRARIES NAMES libexpatd)
+      find_program(XMLLIB_DLL libexpatd.dll)
     endif()
 endif()
 
diff --git a/src/test/cpp/CMakeLists.txt b/src/test/cpp/CMakeLists.txt
index ab2e036..9834d98 100644
--- a/src/test/cpp/CMakeLists.txt
+++ b/src/test/cpp/CMakeLists.txt
@@ -61,10 +61,9 @@ add_subdirectory(xml)
 if( WIN32 )
 	get_filename_component(APR_DLL_DIR "${APR_DLL}" DIRECTORY)
 	get_filename_component(APR_UTIL_DLL_DIR "${APR_UTIL_DLL}" DIRECTORY)
+	get_filename_component(XMLLIB_DLL_DIR "${XMLLIB_DLL}" DIRECTORY)
 
 	set(LOG4CXX_DLL_DIR "$<SHELL_PATH:$<TARGET_FILE_DIR:log4cxx>>;")
-	set(XMLLIB_DLL_DIR  "C:\\Users\\tschoening\\Documents\\Svn\\Src\\Libs\\trunk\\C\\XML\\libexpat\\2.2.9\\src\\expat\\out\\install\\x64-Debug\\bin")
-
 	set(PATH_FOR_TESTS ${APR_DLL_DIR};${APR_UTIL_DLL_DIR};${LOG4CXX_DLL_DIR};${XMLLIB_DLL_DIR}\;)
 	list(REMOVE_DUPLICATES PATH_FOR_TESTS)
 	set(NORMAL_PATH $ENV{PATH})