define QT_NO_USING_NAMESPACE when testing is enabled

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2017-04-26 07:18:09 +00:00
parent a4f5ce9b4d
commit abafb73acb

View file

@ -448,6 +448,8 @@ if(ENABLE_TESTING)
)
enable_testing()
add_definitions(-DQT_BUILD_INTERNAL)
# most tests are not namespaces aware
add_definitions(-DQT_NO_USING_NAMESPACE)
endif()
# optional packages