all repos — mgba @ 96ac3752767923535052840ec978bbd3d873236c

mGBA Game Boy Advance Emulator

Qt: Work around cmake#16907 (fixes #739)
Vicki Pfau vi@endrift.com
Fri, 19 May 2017 16:02:52 -0700
commit

96ac3752767923535052840ec978bbd3d873236c

parent

f6f3cb5d3d8b91dd603772ea0eebb2513562a0cf

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/platform/qt/CMakeLists.txtsrc/platform/qt/CMakeLists.txt

@@ -289,3 +289,7 @@ endif()

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()