TextClass.cpp the tex2lyx Font class was used, but elsewhere the LyX one.
Hence, because of different binary sizes strange segfaults happened because
the inline methods of TextClass used a different binary layout than the
non-inline methods.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18488
a592a061-630c-0410-9148-
cb99ea01b6c8
include_directories(BEFORE ${TOP_SRC_DIR}/src/tex2lyx)
if(MSVC)
- SET_SOURCE_FILES_PROPERTIES(${TOP_SRC_DIR}/src/Layout.cpp ${TOP_SRC_DIR}/src/TextClass.cpp
+ SET_SOURCE_FILES_PROPERTIES(${tex2lyx_sources} ${LINKED_FILES}
PROPERTIES COMPILE_FLAGS
"/DFONT_H /FI${TOP_SRC_DIR}/src/tex2lyx/Font.h /FI${TOP_SRC_DIR}/src/tex2lyx/Spacing.h")
else(MSVC)
- SET_SOURCE_FILES_PROPERTIES(${TOP_SRC_DIR}/src/Layout.cpp ${TOP_SRC_DIR}/src/TextClass.cpp
+ SET_SOURCE_FILES_PROPERTIES(${tex2lyx_sources} ${LINKED_FILES}
PROPERTIES COMPILE_FLAGS
"-DFONT_H -include ${TOP_SRC_DIR}/src/tex2lyx/Font.h -include ${TOP_SRC_DIR}/src/tex2lyx/Spacing.h")
endif(MSVC)