Fix mac build

This commit is contained in:
Brad Davis 2017-09-03 09:50:25 -07:00
parent 9c03fa0369
commit e64227bccd

View file

@ -60,13 +60,15 @@ macro(setup_qt)
string(REPLACE \\ / QT_DIR ${QT_DIR}) string(REPLACE \\ / QT_DIR ${QT_DIR})
endif() endif()
# This check doesn't work on Mac
if (NOT EXISTS "${QT_DIR}/include/QtCore/QtGlobal") #if (NOT EXISTS "${QT_DIR}/include/QtCore/QtGlobal")
message(FATAL_ERROR "Unable to locate Qt includes in ${QT_DIR}") # message(FATAL_ERROR "Unable to locate Qt includes in ${QT_DIR}")
endif() #endif()
if (NOT EXISTS "${QT_CMAKE_PREFIX_PATH}/Qt5Core/Qt5CoreConfig.cmake") if (NOT EXISTS "${QT_CMAKE_PREFIX_PATH}/Qt5Core/Qt5CoreConfig.cmake")
message(FATAL_ERROR "Unable to locate Qt cmake config in ${QT_CMAKE_PREFIX_PATH}") message(FATAL_ERROR "Unable to locate Qt cmake config in ${QT_CMAKE_PREFIX_PATH}")
endif() endif()
message(STATUS "The Qt build in use is: \"${QT_DIR}\"") message(STATUS "The Qt build in use is: \"${QT_DIR}\"")
# Instruct CMake to run moc automatically when needed. # Instruct CMake to run moc automatically when needed.