mirror of
https://github.com/jellyfin/jellyfin-desktop.git
synced 2026-10-26 16:45:24 +00:00
Fix -Wmissing-include-dirs warning for nonexistent QTROOT
This commit is contained in:
1 parent
cb9cc48981
commit
a89d8ca5eb
2 files changed
+10
-1
No files matched your search
@@ -1,6 +1,15 @@
|
||||
# MSVC goes totally bananas if we pass it -Wall
|
||||
if(NOT MSVC)
|
||||
enable_if_supported(COMPILER_FLAGS "-Wall")
|
||||
enable_if_supported(COMPILER_FLAGS "-Wextra")
|
||||
enable_if_supported(COMPILER_FLAGS "-Wformat")
|
||||
enable_if_supported(COMPILER_FLAGS "-Werror=format-security")
|
||||
enable_if_supported(COMPILER_FLAGS "-Wshadow")
|
||||
enable_if_supported(COMPILER_FLAGS "-Wundef")
|
||||
enable_if_supported(COMPILER_FLAGS "-Wcast-align")
|
||||
enable_if_supported(COMPILER_FLAGS "-Wmissing-include-dirs")
|
||||
enable_if_supported(COMPILER_FLAGS "-Woverloaded-virtual")
|
||||
enable_if_supported(COMPILER_FLAGS "-Wold-style-cast")
|
||||
endif()
|
||||
|
||||
enable_if_supported(COMPILER_FLAGS "-Wshorten-64-to-32")
|
||||
|
||||
@@ -17,7 +17,7 @@ message(STATUS "Qt root directory: ${QTROOT}")
|
||||
|
||||
list(APPEND CMAKE_FIND_ROOT_PATH ${QTROOT})
|
||||
list(APPEND CMAKE_PREFIX_PATH ${QTROOT})
|
||||
if(NOT "${QTROOT}" STREQUAL "")
|
||||
if(IS_DIRECTORY "${QTROOT}/include")
|
||||
include_directories(${QTROOT}/include)
|
||||
endif()
|
||||
|
||||
|
||||
Reference in new issue
Block a user