]> git.lyx.org Git - lyx.git/commitdiff
Do not compile trivstring.cpp if not needed
authorGeorg Baum <baum@lyx.org>
Fri, 26 Dec 2014 19:09:58 +0000 (20:09 +0100)
committerGeorg Baum <baum@lyx.org>
Sat, 27 Dec 2014 14:17:10 +0000 (15:17 +0100)
This avoids a MSVC warning.

src/support/CMakeLists.txt

index b0d1c6db202f58ca12a57dadf6b69f42632b195d..42a9134ee3ae5bb9b8ed7530b51774cb9abdd117 100644 (file)
@@ -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")