projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
More -Weffc++ cleanup, almost done
[supertux.git]
/
tools
/
miniswig
/
CMakeLists.txt
diff --git
a/tools/miniswig/CMakeLists.txt
b/tools/miniswig/CMakeLists.txt
index
6f1cbe7
..
7023334
100644
(file)
--- a/
tools/miniswig/CMakeLists.txt
+++ b/
tools/miniswig/CMakeLists.txt
@@
-24,7
+24,8
@@
PROJECT(MINISWIG)
## add additional compiler switches
ADD_DEFINITIONS(-include ${CMAKE_BINARY_DIR}/config.h)
## add additional compiler switches
ADD_DEFINITIONS(-include ${CMAKE_BINARY_DIR}/config.h)
-REMOVE_DEFINITIONS(-Wall)
+# the autogenerated bison/flex is not warning free usually
+REMOVE_DEFINITIONS(-Wall -W)
## Include paths to make generated files work
## Include paths to make generated files work
@@
-36,6
+37,7
@@
FILE(GLOB MINISWIG_SOURCES RELATIVE ${MINISWIG_SOURCE_DIR} create_docu.cpp creat
## Add target for bison parser generation
## Add target for bison parser generation
+MARK_AS_ADVANCED(BISON_EXECUTABLE)
FIND_PROGRAM(BISON_EXECUTABLE bison)
IF (NOT BISON_EXECUTABLE)
MESSAGE(FATAL_ERROR "bison not found - aborting")
FIND_PROGRAM(BISON_EXECUTABLE bison)
IF (NOT BISON_EXECUTABLE)
MESSAGE(FATAL_ERROR "bison not found - aborting")
@@
-49,6
+51,7
@@
ADD_CUSTOM_COMMAND(
## Add target for flex lexical analyzer generation
## Add target for flex lexical analyzer generation
+MARK_AS_ADVANCED(FLEX_EXECUTABLE)
FIND_PROGRAM(FLEX_EXECUTABLE flex)
IF (NOT FLEX_EXECUTABLE)
MESSAGE(FATAL_ERROR "flex not found - aborting")
FIND_PROGRAM(FLEX_EXECUTABLE flex)
IF (NOT FLEX_EXECUTABLE)
MESSAGE(FATAL_ERROR "flex not found - aborting")