diff options
author | Brad King <brad.king@kitware.com> | 2016-10-14 13:02:43 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-10-14 13:02:43 (GMT) |
commit | dabd17792215535bdbc0fc5ad032e2a59e7505d2 (patch) | |
tree | 60eac1565e0914792d73a5c01522de55647feac2 /Tests | |
parent | 03622ee2d0947b01a56527ea34cbe43fb9c8eba6 (diff) | |
parent | 20278872e3d8145f4aa81ea6cde01144daa3ca8f (diff) | |
download | CMake-dabd17792215535bdbc0fc5ad032e2a59e7505d2.zip CMake-dabd17792215535bdbc0fc5ad032e2a59e7505d2.tar.gz CMake-dabd17792215535bdbc0fc5ad032e2a59e7505d2.tar.bz2 |
Merge topic 'ninja-framework-POST_BUILD'
20278872 Ninja: Fix POST_BUILD commands on macOS Frameworks
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/Framework/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/Framework/CMakeLists.txt b/Tests/Framework/CMakeLists.txt index 29f9838..271aaf1 100644 --- a/Tests/Framework/CMakeLists.txt +++ b/Tests/Framework/CMakeLists.txt @@ -51,6 +51,11 @@ install(TARGETS foo bar # duplicate install rules for the pieces of the framework. ) +# test that framework post-build commands run +add_custom_command(TARGET foo POST_BUILD COMMAND ${CMAKE_COMMAND} -E touch foo-post-build) +add_custom_target(fooCustom ALL COMMAND ${CMAKE_COMMAND} -E copy foo-post-build foo-custom) +add_dependencies(fooCustom foo) + # Make a static library and apply the framework properties to it to verify # that everything still builds correctly, but it will not actually produce # a framework... The framework properties only apply when the library type |