2016-02-13 08:50:05 +00:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
|
|
index 2c29af4..c3a7992 100644
|
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
|
|
|
@@ -427,6 +427,8 @@ endif()
|
2015-07-05 06:31:23 +00:00
|
|
|
# a small test program checking the defines. This works for both Qt4 and Qt5.
|
|
|
|
cmake_push_check_state(RESET)
|
|
|
|
set(CMAKE_REQUIRED_INCLUDES ${QT_INCLUDES} ${Qt5Core_INCLUDE_DIRS})
|
2016-02-13 08:50:05 +00:00
|
|
|
+set(CMAKE_REQUIRED_FLAGS ${Qt5Core_EXECUTABLE_COMPILE_FLAGS})
|
2015-07-05 06:31:23 +00:00
|
|
|
+set(CMAKE_REQUIRED_LIBRARIES ${Qt5Core_LIBRARIES})
|
2016-02-13 08:50:05 +00:00
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Core_EXECUTABLE_COMPILE_FLAGS}")
|
2015-07-05 06:31:23 +00:00
|
|
|
check_cxx_source_compiles("
|
|
|
|
#include \"qglobal.h\"
|