Skip to content

Commit 74e59fc

Browse files
author
timlinux
committed
Dont treat warnings as errors for lex generated sources
git-svn-id: http://svn.osgeo.org/qgis/trunk@6621 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 4869951 commit 74e59fc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@ ADD_FLEX_FILES(QGIS_CORE_SRCS qgssearchstringlexer.ll)
6969

7070
ADD_BISON_FILES(QGIS_CORE_SRCS qgssearchstringparser.yy)
7171

72+
# Disabe compiler warnings for lex generated sources
73+
SET_SOURCE_FILES_PROPERTIES(
74+
${CMAKE_BINARY_DIR}/src/core/flex_qgssearchstringlexer.cpp
75+
PROPERTIES COMPILE_FLAGS -w)
76+
7277
SET(QGIS_CORE_MOC_HDRS
7378
qgscontexthelp.h
7479
qgscoordinatetransform.h

0 commit comments

Comments
 (0)