Qt: Work around cmake#16907 (fixes #739)

This commit is contained in:
Vicki Pfau 2017-05-19 16:02:52 -07:00
parent f6f3cb5d3d
commit 96ac375276
1 changed files with 4 additions and 0 deletions

View File

@ -289,3 +289,7 @@ if(APPLE)
install(CODE "execute_process(COMMAND \"${CMAKE_SOURCE_DIR}/tools/deploy-mac.py\" -v ${DEPLOY_OPTIONS} \"\$ENV{DESTDIR}\${CMAKE_INSTALL_PREFIX}/Applications/${PROJECT_NAME}.app\")")
endif()
endif()
if(WIN32 AND CMAKE_MAJOR_VERSION GREATER 2 AND CMAKE_MINOR_VERSION GREATER 7)
# Work around CMake issue #16907
set_target_properties(${BINARY_NAME}-qt PROPERTIES AUTORCC ON SKIP_AUTORCC ON)
endif()