case where SUBDIRS is declared in an enclosed if, the cmake compilation
fails ...
# SET(ENABLE_QXGRAPHVIEWER ON)
""")
pass
+ # --
pass
+ # --
+ newlines.append("""
+ SET(SUBDIRS)
+ """)
+ # --
return
def treatLine(self, line, newlines, opened_ifs):
# --
# convert the SUBDIRS in cmake grammar
# --
- if self.__thedict__.has_key("SUBDIRS"):
+ if 1: # self.__thedict__.has_key("SUBDIRS"):
newlines.append(r'''
FOREACH(dir ${SUBDIRS})
ADD_SUBDIRECTORY(${dir})