We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b069be4 commit a848e85Copy full SHA for a848e85
CMakeLists.txt
@@ -91,7 +91,7 @@ endif()
91
92
find_package(QT NAMES Qt6 Qt5 COMPONENTS Widgets)
93
find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Widgets)
94
-if(NOT QT_DIR)
+if(NOT QT_FOUND)
95
message(WARNING "QT not found, so project qt_timer will not be compiled")
96
else()
97
if(PROMISE_BUILD_SHARED OR BUILD_SHARED_LIBS)
@@ -104,6 +104,9 @@ else()
104
add_subdirectory(./example/qt_timer)
105
endif()
106
107
-if(MSVC)
+find_package(MFC)
108
+if(NOT MFC_FOUND)
109
+ message(WARNING "MFC not found, so project mfc_timer will not be compiled")
110
+else()
111
add_subdirectory(./example/mfc_timer)
112
0 commit comments