Do not compile trivstring.cpp if not needed

This avoids a MSVC warning.
This commit is contained in:
Georg Baum 2014-12-26 20:09:58 +01:00
parent 16eb4f1ed7
commit 2e5ecd9dfb

View File

@ -33,6 +33,9 @@ list(REMOVE_ITEM support_sources
${TOP_SRC_DIR}/src/support/os_cygwin.cpp ${TOP_SRC_DIR}/src/support/os_cygwin.cpp
${TOP_SRC_DIR}/src/support/os_os2.C ${TOP_SRC_DIR}/src/support/os_os2.C
${TOP_SRC_DIR}/src/support/gettext.cpp) ${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) if(APPLE)
message(STATUS "Mac LinkBack support") message(STATUS "Mac LinkBack support")