From 38659f01f9d35c5611909a1b4dc5654ad9b358fd Mon Sep 17 00:00:00 2001 From: PBerger Date: Sun, 2 Mar 2014 15:38:29 +0100 Subject: [PATCH] Reintegrated needed changes in the log4cplus CMakeLists.txt files. Updated the .gitignore file Former-commit-id: e2de059cb701e41a926436d33f70167adbfcc262 --- .gitignore | 4 ++-- resources/3rdparty/log4cplus-1.1.3-rc1/CMakeLists.txt | 9 +++++++-- .../3rdparty/log4cplus-1.1.3-rc1/src/CMakeLists.txt | 4 +++- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 47ad40437..f825daea1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ ##Third-Party libs -resources/3rdparty/log4cplus-1.1.2-rc2/ -resources/3rdparty/gtest-1.6.0/ +resources/3rdparty/log4cplus-1.1.3-rc1/ +resources/3rdparty/gtest-1.7.0/ resources/3rdparty/eigen/ resources/3rdparty/gmm-4.2/ resources/3rdparty/cudd-2.5.0/ diff --git a/resources/3rdparty/log4cplus-1.1.3-rc1/CMakeLists.txt b/resources/3rdparty/log4cplus-1.1.3-rc1/CMakeLists.txt index 3ea86be14..0fe3ce793 100644 --- a/resources/3rdparty/log4cplus-1.1.3-rc1/CMakeLists.txt +++ b/resources/3rdparty/log4cplus-1.1.3-rc1/CMakeLists.txt @@ -44,6 +44,7 @@ endif (WIN32) if (MSVC) set (LOG4CPLUS_WORKING_LOCALE_DEFAULT ON) else (MSVC) + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") set (LOG4CPLUS_WORKING_LOCALE_DEFAULT OFF) endif (MSVC) @@ -72,9 +73,13 @@ if (NOT ${BUILD_SHARED_LIBS}) set (log4cplus_postfix "${log4cplus_postfix}S") endif() -if (UNICODE) +if (UNICODE AND (DEFINED LOG4CPLUS_USE_UNICODE AND LOG4CPLUS_USE_UNICODE)) set (log4cplus_postfix "${log4cplus_postfix}U") -endif (UNICODE) + message(STATUS "Log4CPlus - Using Unicode: YES") +else() + message(STATUS "Log4CPlus - Using Unicode: NO") + set(UNICODE OFF) +endif() if (WITH_ICONV) set(LOG4CPLUS_WITH_ICONV 1) diff --git a/resources/3rdparty/log4cplus-1.1.3-rc1/src/CMakeLists.txt b/resources/3rdparty/log4cplus-1.1.3-rc1/src/CMakeLists.txt index 8f3070cb2..2ca977f95 100644 --- a/resources/3rdparty/log4cplus-1.1.3-rc1/src/CMakeLists.txt +++ b/resources/3rdparty/log4cplus-1.1.3-rc1/src/CMakeLists.txt @@ -51,7 +51,7 @@ set (log4cplus_sources #message (STATUS "Type: ${UNIX}|${CYGWIN}|${WIN32}") -if ("${UNIX}" OR "${CYGWIN}") +if ("${UNIX}" OR "${CYGWIN}" OR APPLE) set (log4cplus_sources ${log4cplus_sources} socket-unix.cxx) elseif (WIN32) @@ -67,6 +67,8 @@ endif () if (UNICODE) add_definitions (-DUNICODE -D_UNICODE -UMBCS -U_MBCS) +else(UNICODE) + add_definitions (-UUNICODE -U_UNICODE -DMBCS -D_MBCS) endif (UNICODE) if (WIN32) add_definitions (-DMINGW_HAS_SECURE_API=1)