From 2e5ecd9dfbd6a9068ba384bf60726d5eae546b84 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Fri, 26 Dec 2014 20:09:58 +0100 Subject: [PATCH] Do not compile trivstring.cpp if not needed This avoids a MSVC warning. --- src/support/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/support/CMakeLists.txt b/src/support/CMakeLists.txt index b0d1c6db20..42a9134ee3 100644 --- a/src/support/CMakeLists.txt +++ b/src/support/CMakeLists.txt @@ -33,6 +33,9 @@ list(REMOVE_ITEM support_sources ${TOP_SRC_DIR}/src/support/os_cygwin.cpp ${TOP_SRC_DIR}/src/support/os_os2.C ${TOP_SRC_DIR}/src/support/gettext.cpp) +if(NOT STD_STRING_USES_COW) + list(REMOVE_ITEM support_sources ${TOP_SRC_DIR}/src/support/trivstring.cpp) +endif() if(APPLE) message(STATUS "Mac LinkBack support")