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

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


The following commit(s) were added to refs/heads/LOGCXX-518 by this push:
     new eed0495c check for std experimental when linking
eed0495c is described below

commit eed0495c42c4b3badf5824d1cb7468548f071c28
Author: Robert Middleton <[email protected]>
AuthorDate: Sat Oct 22 10:01:44 2022 -0400

    check for std experimental when linking
---
 src/main/cpp/CMakeLists.txt | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/main/cpp/CMakeLists.txt b/src/main/cpp/CMakeLists.txt
index e1fa6ba4..4460144c 100644
--- a/src/main/cpp/CMakeLists.txt
+++ b/src/main/cpp/CMakeLists.txt
@@ -194,7 +194,8 @@ set_target_properties(log4cxx PROPERTIES
 )
 boostfallback_link(log4cxx)
 get_directory_property( FILESYSTEM_IMPL DIRECTORY 
"${CMAKE_SOURCE_DIR}/src/main/include" DEFINITION FILESYSTEM_IMPL )
-if("${FILESYSTEM_IMPL}" STREQUAL "std::filesystem" )
+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>)
 endif()
 

Reply via email to