Skip to content

Commit bf10bb8

Browse files
johnzupinchristophe-lunarg
authored andcommitted
cmake: add qt6 static detection and give warning
1 parent afdb674 commit bf10bb8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ option(BUILD_TESTS "Build tests")
5353
option(RUN_ON_GITHUB "Build only tests that can run on Github" OFF)
5454

5555
if(BUILD_TESTS)
56+
if (WIN32 AND (QT_TARGET_TYPE STREQUAL STATIC_LIBRARY))
57+
message("WARNING: Static Qt detected! Please ensure googletest is built with update_deps.sh options: '--gtest-shared-libs=OFF' and '--gtest-force-shared-crt=OFF'")
58+
endif()
5659
enable_testing()
5760
find_package(GTest REQUIRED CONFIG)
5861
endif()

0 commit comments

Comments
 (0)