mirror of
https://github.com/overte-org/overte.git
synced 2025-08-07 15:50:37 +02:00
Fix mac build
This commit is contained in:
parent
9c03fa0369
commit
e64227bccd
1 changed files with 6 additions and 4 deletions
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue