Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-88

Out-of-source build touches files in source dir

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Fixed
    • 2.0.0
    • None
    • None
    • None
    • Linux

    Description

      mysql_version.h and my_config.h are generated files created from .in templates, but are created inside CMAKE_SOURCE_DIR instead of CMAKE_CURRENT_BINARY_DIR

      so building out-of-source is not possible if the user doing the build doesn't have write access to the source dir, and when having multiple out-of-source builddirs with e.g. different CMAKE_INSTALL_PREFIX builds may overwrite each others changes to my_config.h

      I guess placing the generated files in the source dir, not build dir, was intentional for cpack to be able to pick them up, but IMHO this is still something that needs to be fixed / handled in a different way

      (... insert usual rant about automake "make dist" being more flexible about defining such extra dist files and "make distcheck" checking for exactly this kind of problem, amongst other things, here ...)

      Attachments

        Activity

          People

            georg Georg Richter
            hholzgra Hartmut Holzgraefe
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.