Fix Qt class detection on Windows.
This commit is contained in:
parent
28000755c2
commit
dc1eef279e
1 changed files with 1 additions and 2 deletions
|
|
@ -65,8 +65,7 @@ macro(check_qt_class module class global_sources)
|
||||||
file(WRITE ${SRC_FILE}
|
file(WRITE ${SRC_FILE}
|
||||||
"#include <${module}>\n"
|
"#include <${module}>\n"
|
||||||
"#include <typeinfo>\n"
|
"#include <typeinfo>\n"
|
||||||
"#include <inttypes.h>\n"
|
"int main() { typeid(${class}); }\n"
|
||||||
"int main() { return (intptr_t) &typeid(${class}); }\n"
|
|
||||||
)
|
)
|
||||||
try_compile(Q_WORKS ${CMAKE_BINARY_DIR}
|
try_compile(Q_WORKS ${CMAKE_BINARY_DIR}
|
||||||
${SRC_FILE}
|
${SRC_FILE}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue