Qt: Fix host check

This commit is contained in:
Vicki Pfau 2017-03-26 10:51:34 -07:00
parent b22796aff7
commit aff1486ec5
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ if(APPLE OR WIN32)
endif()
if(APPLE)
message(STATUS ${CMAKE_SYSTEM_NAME})
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
get_target_property(QTCOCOA Qt5::QCocoaIntegrationPlugin LOCATION)
get_target_property(COREAUDIO Qt5::CoreAudioPlugin LOCATION)
get_target_property(BUNDLE_PATH ${BINARY_NAME}-qt LOCATION)