CMake: Print the Qt version and path #5957 #5932
authorMarkus Goetz <markus@woboq.com>
Mon, 14 Aug 2017 12:23:25 +0000 (14:23 +0200)
committerMarkus Goetz <markus@woboq.com>
Mon, 14 Aug 2017 12:24:27 +0000 (14:24 +0200)
CMakeLists.txt

index 9b6e9810d405387a6171a7cb0b2420e29e6f7af4..38193d0068551a295557f4f15c04e2f9b319b771 100644 (file)
@@ -198,7 +198,12 @@ if (${Qt5Core_VERSION_MAJOR} EQUAL "5")
     else()
       message(STATUS "If possible compile me with Qt 5.6 or higher.")
     endif()
+    if (${Qt5Core_VERSION_MINOR} EQUAL "9" OR ${Qt5Core_VERSION_MINOR} GREATER 9)
+    else()
+      message(STATUS "For HTTP2 use Qt 5.9.2 or higher.")
+    endif()
 endif()
+message("Qt ${Qt5Core_VERSION} at ${Qt5Core_INCLUDE_DIRS}")
 
 if (APPLE)
     set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")