Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ilfreddy opened this issue Jun 30, 2017 · 1 comment
Open

Comments

@ilfreddy
Copy link
Collaborator

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
@robertodr
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants