CMake: make Qt work when using a manual "-std=c++##" flag

Based on approach in https://gitlab.kitware.com/cmake/cmake/issues/16468
This commit is contained in:
Michael Maltese 2017-06-03 15:47:13 -07:00
parent 0e6bd74ed6
commit c520a53b07

View File

@ -1,4 +1,5 @@
find_package(Qt5Widgets REQUIRED)
set_property(TARGET Qt5::Core PROPERTY INTERFACE_COMPILE_FEATURES "")
message(STATUS "Found Qt version ${Qt5Core_VERSION}")
include_directories(${CMAKE_CURRENT_BINARY_DIR})