Skip to content

CMake issue: removing a folder with test files triggers recompilation #79

Open

Description

@ilfreddy

Expected Behavior

Removing a a folder in the test suite should make CMake copy a fresh folder with updated test fils (I tried with tests/input). No executable or source file is affected and recompilation should therefore not be necessary.

Current Behavior

In addition to copying the folder (correct behavior) CMake recompiles some libraries.

Possible Solution

Steps to Reproduce (for bugs)

  1. build the code
  2. rm -rf build/tests/input
  3. cd build
  4. make

Activity

  1. robertodr commented on Jul 3, 2017

    @robertodr
    Member

    The solution I can see is to make the copy operation a custom target upon which testing itself depends.
    As a temporary workaround, touch CMakeLists.txt in the subdirectory of tests that you've modified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions