Skip to content

Commit

Permalink
Merge pull request #584 from bennibbelink/recognize-test-changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gonuke authored Feb 21, 2024
2 parents 986abe8 + d709525 commit 38e6017
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ cycamore Change Log

* Updated build procedure to use newer versions of packages in 2023 (#549)
* Added active/dormant and request size variation from buy policy to Storage (#546, #568)
* Update build procedure to force a rebuild when a test file is changed (#584)

v1.5.5
====================
Expand Down
10 changes: 10 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,13 @@ INSTALL(FILES run_inputs.py
DESTINATION bin
COMPONENT testing
)

# CMAKE_CONFIGURE_DEPENDS will force a rebuild on a change to the source file
FILE(GLOB test_files CONFIGURE_DEPENDS "${CMAKE_SOURCE_DIR}/src/*_tests.*")
FOREACH(file ${test_files})
SET_PROPERTY(
DIRECTORY
APPEND
PROPERTY CMAKE_CONFIGURE_DEPENDS ${file}
)
ENDFOREACH()

0 comments on commit 38e6017

Please sign in to comment.