You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by sw...@apache.org on 2022/12/30 02:49:55 UTC

[logging-log4cxx] branch next_stable updated: Prevent build error when including log4cxx from a higher-level CMake file

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

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


The following commit(s) were added to refs/heads/next_stable by this push:
     new a176d00d Prevent build error when including log4cxx from a higher-level CMake file
a176d00d is described below

commit a176d00d64551c6fbe621708596288cd5b029ed1
Author: Stephen Webb <st...@sabreautonomous.com.au>
AuthorDate: Fri Dec 30 13:49:45 2022 +1100

    Prevent build error when including log4cxx from a higher-level CMake file
---
 src/main/cpp/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/main/cpp/CMakeLists.txt b/src/main/cpp/CMakeLists.txt
index 01a5b991..929745c5 100644
--- a/src/main/cpp/CMakeLists.txt
+++ b/src/main/cpp/CMakeLists.txt
@@ -203,7 +203,7 @@ set_target_properties(log4cxx PROPERTIES
   SOVERSION ${LIBLOG4CXX_LIB_SOVERSION}
 )
 boostfallback_link(log4cxx)
-get_directory_property( FILESYSTEM_IMPL DIRECTORY "${CMAKE_SOURCE_DIR}/src/main/include" DEFINITION FILESYSTEM_IMPL )
+get_directory_property( FILESYSTEM_IMPL DIRECTORY "${LOG4CXX_SOURCE_DIR}/src/main/include" DEFINITION FILESYSTEM_IMPL )
 if("${FILESYSTEM_IMPL}" STREQUAL "std::filesystem" OR
    "${FILESYSTEM_IMPL}" STREQUAL "std::experimental::filesystem" )
   target_link_libraries(log4cxx PUBLIC $<$<AND:$<CXX_COMPILER_ID:GNU>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,9.0>>:stdc++fs>)