diff options
author | Brad King <brad.king@kitware.com> | 2016-10-13 17:51:10 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-10-13 18:04:12 (GMT) |
commit | 20278872e3d8145f4aa81ea6cde01144daa3ca8f (patch) | |
tree | bc3512decdd77d9be6d6a21aeb9a8252ee6e2943 /Tests | |
parent | b99bbfe88d1bb02dc903507f3e1bbe716ac04c12 (diff) | |
download | CMake-20278872e3d8145f4aa81ea6cde01144daa3ca8f.zip CMake-20278872e3d8145f4aa81ea6cde01144daa3ca8f.tar.gz CMake-20278872e3d8145f4aa81ea6cde01144daa3ca8f.tar.bz2 |
Ninja: Fix POST_BUILD commands on macOS Frameworks
The condition added by commit v2.8.12~179^2 (OS X: Fix regression
handling frameworks for Ninja, 2013-07-16) for excluding use of
versioning symlinks on macOS Frameworks must match that used for
POST_BUILD selection. Otherwise we place the POST_BUILD commands after
a symlink step that is never added.
Closes: #16363
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 |