Skip to content

Commit 2f3fb6a

Browse files
committed
CMake: Avoid including parser.c twice
Closes swig#2409
1 parent 0d523d3 commit 2f3fb6a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ install (FILES ${CMAKE_CURRENT_BINARY_DIR}/swigwarn.swg DESTINATION ${SWIG_LIB})
127127
# ---------
128128
file (GLOB DOH_SOURCES ${SWIG_SOURCE_DIR}/DOH/*.c)
129129
file (GLOB CPARSE_SOURCES ${SWIG_SOURCE_DIR}/CParse/*.c)
130+
list (REMOVE_ITEM CPARSE_SOURCES ${SWIG_SOURCE_DIR}/CParse/parser.c)
130131
list (APPEND CPARSE_SOURCES)
131132
file (GLOB PREPROCESSOR_SOURCES ${SWIG_SOURCE_DIR}/Preprocessor/*.c)
132133
file (GLOB CORE_SOURCES ${SWIG_SOURCE_DIR}/Swig/*.c)

0 commit comments

Comments
 (0)