#
from os import getenv
from os import walk
- convert = True # convert files by default
for root, dirs, files in walk(the_root):
# --
# E.A. : Remove 'CVS' in dirs
# --
for f in files:
if f in ["Makefile.am", "Makefile.am.cmake"]:
+ convert = True # convert files by default
forced = getenv("AM2CMAKE_FORCE_GENERATION", "0")=="1" or \
getenv("AM2CMAKE_FORCE_%s_GENERATION"%module.upper(), "0")=="1"
- if convert and not forced:
+ if not forced:
# detect if conversion should be done
if "CMakeLists.txt" in files:
from os.path import join