Skip to content
Snippets Groups Projects
  1. Mar 22, 2015
  2. Mar 20, 2015
  3. Mar 16, 2015
  4. Mar 06, 2015
  5. Feb 06, 2015
  6. Feb 03, 2015
    • Dominic Kempf's avatar
      [CMake] Introduce a check, whether the user runs into FS1532 · bca30529
      Dominic Kempf authored
      With a compiler name given to CMAKE_CXX_COMPILER (instead of a path),
      the name is correctly expanded on the first run of cmake, but as soon
      as the buil didrectory is existent, it is for obscure reasons expanded
      into ${CMAKE_BINARY_DIR}/.... To avoid having users run into this bug,
      the expanded compiler variable is matched with the build directory prefix.
      In that case, an error is issued.
      bca30529
  7. Feb 02, 2015
  8. Jan 29, 2015
  9. Jan 28, 2015
    • Dominic Kempf's avatar
      [CMake] add macro dune_symlink_to_source_files · 1ca7dbfd
      Dominic Kempf authored
      add symlinks to the build tree, which point to files in the source tree.
      Foreach file given in "files", a symlink of that name is created in the
      corresponding build directory. Use for ini files, grid files etc. A warning
      is issued on Windows systems.
      1ca7dbfd
    • Dominic Kempf's avatar
      [CMake] Add macro dune_symlink_to_source_tree · 61841f1f
      Dominic Kempf authored
      Add a symlink called src_dir to all directories in the build tree.
      That symlink points to the corresponding directory in the source tree.
      Call the macro from the toplevel CMakeLists.txt file of your project.
      You can also call it from some other directory, creating only symlinks
      in that directory and all directories below. A warning is issued on
      Windows systems.
      61841f1f
  10. Jan 27, 2015
  11. Dec 22, 2014
  12. Dec 11, 2014
  13. Nov 26, 2014
    • Markus Blatt's avatar
      [cmake] Allow for custom sections in automatically generated package configuration files. · d9c83729
      Markus Blatt authored
      In dune-grid we want to export the path to the grid example files. To do this
      without a handwritten package configuration file, We add a custom section
      to it that can be filled by the modules using the variable DUNE_CUSTOM_PKG_CONFIG_SECTION
      before finalizing the cmake build system. For dune-grid we export the variable
      DUNE_MODULE_SRC_DOCDIR that points to the installed documentation and the path to
      the source files of the documenation in the installed and not-installed module, respectively.
      d9c83729
    • Christoph Grüninger's avatar
      [CMake] Make warning less screaming if a module was not found. · 17d900ab
      Christoph Grüninger authored
      Suggested modules are quite often not available and for a large
      number of suggested modules the output is very cluttered.
      The error message is anyway printed manually.
      17d900ab
  14. Oct 02, 2014
    • Dominic Kempf's avatar
      [CMake] Allow adding compile flags upon running make · 10ece11c
      Dominic Kempf authored and Dominic Kempf's avatar Dominic Kempf committed
      Autotools users kept complaining, that it is conceptionally
      disappointing that targets cannot be build with flags set upon
      entering make (e.g. make CXXFLAGS+="-myflag" mytarget). This
      patch introduces a small hack, that allows for such feature
      in cmake. It is, however, (at least) questionable whether we
      want to include it. Still, for your information and convenience:
      
      To use the feature you must:
      - be using a CMake generator that is based on Makefiles (defaults to true)
      - set the define ALLOW_EXTRA_CXXFLAGS to true, e.g. by including
        CMAKE_FLAGS="-DALLOW_EXTRA_CXXFLAGS=1" in your optsfile.
      - reconfigure your project
      
      cmake will then wrap a small shell script around your compiler
      and allow you to append the content of an environment variable
      to yout compiler flags. Run for above example:
      EXTRA_CXXFLAGS="-myflag" make mytarget
      
      The additional flags will be visually confirmed if and only if
      you set the verbosity (as always):
      EXTRA_CXXFLAGS="-myflag" make VERBOSE=1 mytarget
      10ece11c
  15. Feb 14, 2014
  16. Feb 07, 2014
  17. Jan 31, 2014
  18. Jan 29, 2014
  19. Jan 28, 2014
  20. Jan 27, 2014
    • Markus Blatt's avatar
      [cmake,release] Prevent searching twice for modules. · b58b8475
      Markus Blatt authored
      Before we tried to search for dune-common twice (once without a version
      and then with the required version). Unfortunately this breaks because
      we are adding the same library target twice. With this patch we only
      search for a module once.
      b58b8475
    • Markus Blatt's avatar
      [cmake,release] Test version with cmake and fix requiredness. · 2d20c167
      Markus Blatt authored
      Before this patch we always relied on dunecontrol/pkg-config to check
      for the correct version. With this patch we include this functionality
      also when building packges with dunecontrol for this use part of the version
      checking of cmake (or pkg-config if there are packages without CMake support).
      Basically we let CMake check wether the major and minor version matches and
      afterwards use the information from the dune.module file. This should make
      it possible to have several versions of DUNE installed and still always use
      the correct version. During fixing these issues we noticed that our version
      files were not recognized because the carried the wrong name. Now we use the
      correct name <dune-module>-config-version.cmake.
      2d20c167
  21. Jan 23, 2014
  22. Jan 22, 2014
    • Markus Blatt's avatar
      [bugfix,cmake] Process dependency tree including the module itself. · 58d2e446
      Markus Blatt authored
      One of the latest patches prevent the macros of the current module
      form being executed. This patch fixes this by including the module
      in the dependency tree.
      58d2e446
    • Markus Blatt's avatar
      [cmake,bugfix] Also include modules without macros in ALL_DEPENDENCIES. · 35d07e22
      Markus Blatt authored
      When making the entries of ALL_DEPENDENCIES unique, we skipped modules that
      did not ship a Dune<ModuleName>Macros.cmake macro. This caused their libraries
      to be missing in DUNE_LIBS. This patch fixes this situation.
      35d07e22
    • Markus Blatt's avatar
      [bugfix,cmake] Always read dune.module after finding a module to extract dependencies. · 938523a4
      Markus Blatt authored
      Previously we already processed dune.module but in a much later stage during
      configure. Dependencies are contained in dune.module. Therefore there is no
      need to replicate them in the CMake package configuration files. With this
      patch we now always process dune.module directly after finding the DUNE module.
      In addition we set ${DUNE_MOD_NAME}_(DEPENDS|SUGGESTS} in the CMake environment.
      As with this change DUNE_MOD_NAME will usually be set to to dune-common, we
      also changed to using ProjectName and ProjectVersion (the canonical CMake names)
      to refer to the current module and version.
      938523a4
  23. Jan 21, 2014
  24. Jan 16, 2014
    • Markus Blatt's avatar
      [cmake,bugfix] Allow 0 as a version. · 9afabdcd
      Markus Blatt authored
      Previously we checked whether the extracted Version evaluated to
      True. Unfortunately, there lazy people like me that like use a version
      of 0 for testing, which evaluates to False and breaks configure.
      With this patch we allow 0 to and just test wether the version consists
      of characters.
      9afabdcd
    • Markus Blatt's avatar
      [cmake,bugfix] Handle case where module search path is not in list. · d1011bfe
      Markus Blatt authored
      With new modules there were cases where cmake/modules was not in the
      modules path which made configuration fail. This patch fixes this case.
      d1011bfe
  25. Jan 13, 2014
Loading