Skip to content

Commit

Permalink
Merge pull request #624 from mmuetzel/cmake
Browse files Browse the repository at this point in the history
cmake: Add missing keyword for `TARGET` form of `add_custom_command`.
  • Loading branch information
raback authored Jan 12, 2025
2 parents 6ba688f + 729763f commit 4c1a560
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions elmerice/Tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@ ADD_CUSTOM_TARGET(ElmerIceTests_package
FOREACH(_file ${ELMERICE_TEST_FILES})
IF(NOT(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_file}))
ADD_CUSTOM_COMMAND(TARGET ElmerIceTests
POST_BUILD
COMMAND "${CMAKE_COMMAND}" "-E" "copy"
"${CMAKE_CURRENT_SOURCE_DIR}/${_file}"
"${CMAKE_BINARY_DIR}/elmerice-tests/${_file}")
ELSE()
ADD_CUSTOM_COMMAND(TARGET ElmerIceTests
POST_BUILD
COMMAND "${CMAKE_COMMAND}" "-E" "copy_directory"
"${CMAKE_CURRENT_SOURCE_DIR}/${_file}"
"${CMAKE_BINARY_DIR}/elmerice-tests/${_file}")
Expand Down
2 changes: 2 additions & 0 deletions fem/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,13 @@ ADD_CUSTOM_TARGET(ElmerTests_package
FOREACH(_file ${ELMER_TEST_FILES})
IF(NOT(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_file}))
ADD_CUSTOM_COMMAND(TARGET ElmerTests
POST_BUILD
COMMAND "${CMAKE_COMMAND}" "-E" "copy"
"${CMAKE_CURRENT_SOURCE_DIR}/${_file}"
"${CMAKE_BINARY_DIR}/elmerfem-tests/${_file}")
ELSE()
ADD_CUSTOM_COMMAND(TARGET ElmerTests
POST_BUILD
COMMAND "${CMAKE_COMMAND}" "-E" "copy_directory"
"${CMAKE_CURRENT_SOURCE_DIR}/${_file}"
"${CMAKE_BINARY_DIR}/elmerfem-tests/${_file}")
Expand Down

0 comments on commit 4c1a560

Please sign in to comment.