Fix -Wmissing-include-dirs warning for nonexistent QTROOT

This commit is contained in:
Andrew Rabert committed 2025-11-29 00:29:35 -05:00
1 parent cb9cc48981
commit a89d8ca5eb
2 files changed
+10 -1

No files matched your search

+9
View File
@@ -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")
+1 -1
View File
@@ -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()