"
HAVE_DEF_MAKE_UNIQUE)
+check_cxx_source_compiles(
+ "
+ #include <mutex>
+ static std::once_flag flag;
+ int main() {
+ std::call_once(flag, [](){ return; });
+ return(0);
+ }
+ "
+LYX_USE_STD_CALL_ONCE)
+
set(USE_LLVM_LIBCPP)
set(STD_STRING_USES_COW)
set(USE_GLIBCXX_CXX11_ABI)
set(CMAKE_REQUIRED_INCLUDES ${Qt5Core_INCLUDE_DIRS})
set(CMAKE_REQUIRED_FLAGS)
#message(STATUS "Qt5Core_INCLUDE_DIRS = ${Qt5Core_INCLUDE_DIRS}")
+ check_include_file_cxx(QtGui/qtgui-config.h HAVE_QTGUI_CONFIG_H)
+ if (HAVE_QTGUI_CONFIG_H)
+ set(lyx_qt5_config "QtGui/qtgui-config.h")
+ else()
+ set(lyx_qt5_config "QtCore/qconfig.h")
+ endif()
check_cxx_source_runs(
"
- #include <QtCore/qconfig.h>
+ #include <${lyx_qt5_config}>
#include <string>
using namespace std;
string a(QT_QPA_DEFAULT_PLATFORM_NAME);
"
QT_HAS_X11_EXTRAS)
set(HAVE_QT5_X11_EXTRAS ${QT_HAS_X11_EXTRAS})
+ set(LYX_QT5_X11_EXTRAS_LIBRARY ${_x11extra_link_libraries})
endif()
if (Qt5WinExtras_FOUND)
get_target_property(_winextra_prop Qt5::WinExtras IMPORTED_CONFIGURATIONS)