diff --git a/test/cxx_custom/cmake/autocmake.cfg b/test/cxx_custom/cmake/autocmake.cfg deleted file mode 100644 index b6fe55c..0000000 --- a/test/cxx_custom/cmake/autocmake.cfg +++ /dev/null @@ -1,17 +0,0 @@ -[project] -name: example -min_cmake_version: 2.8 - -[cxx] -source: ../../../modules/cxx.cmake -config: custom -docopt: --cxx= C++ compiler [default: g++]. - --extra-cxx-flags= Extra C++ compiler flags [default: '']. -export: 'CXX=%s' % arguments['--cxx'] -define: '-DEXTRA_CXXFLAGS="%s"' % arguments['--extra-cxx-flags'] - -[default_build_paths] -source: ../../../modules/default_build_paths.cmake - -[src] -source: ../../../modules/src.cmake diff --git a/test/cxx_custom/src/CMakeLists.txt b/test/cxx_custom/src/CMakeLists.txt deleted file mode 100644 index 2d487d5..0000000 --- a/test/cxx_custom/src/CMakeLists.txt +++ /dev/null @@ -1 +0,0 @@ -add_executable(example example.cpp) diff --git a/test/cxx_custom/src/example.cpp b/test/cxx_custom/src/example.cpp deleted file mode 100644 index fc43d52..0000000 --- a/test/cxx_custom/src/example.cpp +++ /dev/null @@ -1,7 +0,0 @@ -#include - -int main() -{ - std::cout << "PASSED"; - return 0; -} diff --git a/test/test.py b/test/test.py index 2f03957..b1bd698 100644 --- a/test/test.py +++ b/test/test.py @@ -93,10 +93,6 @@ def configure_build_and_exe(name, setup_command, launcher=None): # ------------------------------------------------------------------------------ -def test_cxx_custom(): - configure_build_and_exe('cxx_custom', 'python setup.py --cxx=g++') - - def test_extra_cmake_options(): configure_build_and_exe('extra_cmake_options', 'python setup.py --cxx=g++ --cmake-options="-DENABLE_SOMETHING=OFF -DENABLE_FOO=ON"') diff --git a/update.py b/update.py index 42ace01..c0c9092 100644 --- a/update.py +++ b/update.py @@ -285,19 +285,13 @@ def fetch_modules(config, relative_path): sys.stderr.write("ERROR: %s does not exist\n" % src) sys.exit(-1) - # unless config is 'custom' we infer configuration - # from the module documentation - parse_doc = True - if config.has_option(section, 'config'): - if config.get(section, 'config') == 'custom': - parse_doc = False - if parse_doc: - with open(file_name, 'r') as f: - config_docopt, config_define, config_export, config_fetch = parse_cmake_module(f.read()) - config = prepend_or_set(config, section, 'docopt', config_docopt) - config = prepend_or_set(config, section, 'define', config_define) - config = prepend_or_set(config, section, 'export', config_export) - config = prepend_or_set(config, section, 'fetch', config_fetch) + # we infer config from the module documentation + with open(file_name, 'r') as f: + config_docopt, config_define, config_export, config_fetch = parse_cmake_module(f.read()) + config = prepend_or_set(config, section, 'docopt', config_docopt) + config = prepend_or_set(config, section, 'define', config_define) + config = prepend_or_set(config, section, 'export', config_export) + config = prepend_or_set(config, section, 'fetch', config_fetch) modules.append(Module(path=path, name=name)) i += 1 print_progress_bar(