logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tschoen...@apache.org
Subject [logging-log4cxx] branch master updated: reorder find_package to build SO correctly
Date Thu, 25 Jun 2020 07:30:36 GMT
This is an automated email from the ASF dual-hosted git repository.

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


The following commit(s) were added to refs/heads/master by this push:
     new 229106f  reorder find_package to build SO correctly
229106f is described below

commit 229106fd7ce99452501bd8406bd653793c756f69
Author: Robert Middleton <robert.middleton@rm5248.com>
AuthorDate: Tue Jun 23 20:37:10 2020 -0400

    reorder find_package to build SO correctly
---
 CMakeLists.txt | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index bc26ae6..2757cfe 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,18 +6,18 @@ include(CTest)
 # FindAPR and FindAPR-util are not provided by APR and APR-Util so source them locally
 list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/src/cmake")
 
-# Find Apache Runtime
-find_package(APR REQUIRED)
-
-# Find Apache Runtime Utilities
-find_package(APR-Util REQUIRED)
-
 # Add support for linking statically
 option(BUILD_SHARED_LIBS "Build shared libraries" ON)
 if(NOT BUILD_SHARED_LIBS)
   set(LOG4CXX_COMPILE_DEFINITIONS LOG4CXX_STATIC)
 endif()
 
+# Find Apache Runtime
+find_package(APR REQUIRED)
+
+# Find Apache Runtime Utilities
+find_package(APR-Util REQUIRED)
+
 # Building
 add_subdirectory(src)
 


Mime
View raw message