cmake: Fix OSX post-build if not all targets are requested
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 20 Nov 2018 21:10:27 +0000 (22:10 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 20 Nov 2018 23:00:20 +0000 (00:00 +0100)
commite868433618defabcbdc078745e6d19dd9573c005
tree98dbdbeed8de5416c724d710a6738e266d98a076
parent95848fd9232d92f388e0e533adb15f6ba9d2d492
cmake: Fix OSX post-build if not all targets are requested

The post-build actions for OSX were not conditional on the selected
Quassel variants, so add_custom_command would be added to an undefined
target in that case.

This bug has been there since literally forever; however, CMake < 3.0
silently ignored the custom commands in that case, and thus this
issue was not visible.

With cmake_minimum_required now set to 3.5, the new behavior is
enabled and causes an error at configure time. Fix this by adding
the missing conditions.
src/main/CMakeLists.txt