]> git.lyx.org Git - lyx.git/blobdiff - development/cmake/ConfigureChecks.cmake
Cmake export tests: Added testcases for erroneous xhtml exports
[lyx.git] / development / cmake / ConfigureChecks.cmake
index 6dc82a7d8788d75484792336cf3280da801de11d..2de915f7e701558212f0859f1de970144188b952 100644 (file)
@@ -114,6 +114,13 @@ check_cxx_source_compiles(
        "
 SIZEOF_WCHAR_T_IS_4)
 
+check_cxx_source_compiles(
+       "
+       int i[ ( sizeof(long long)>sizeof(long) ? 1 : -1 ) ];
+       int main(){return 0;}
+       "
+SIZEOF_LONG_LONG_GREATER_THAN_SIZEOF_LONG)
+
 check_cxx_source_compiles(
        "
        #include <execinfo.h>
@@ -185,7 +192,10 @@ if(LYX_USE_QT MATCHES "QT5")
     get_target_property(_x11extra_link_libraries Qt5::X11Extras IMPORTED_LOCATION_${_x11extra_prop})
     set(CMAKE_REQUIRED_LIBRARIES ${_x11extra_link_libraries})
     set(CMAKE_REQUIRED_INCLUDES ${Qt5X11Extras_INCLUDE_DIRS})
-    set(CMAKE_REQUIRED_FLAGS ${Qt5X11Extras_EXECUTABLE_COMPILE_FLAGS})
+    set(CMAKE_REQUIRED_FLAGS "${Qt5X11Extras_EXECUTABLE_COMPILE_FLAGS} -fPIC -DQT_NO_VERSION_TAGGING")
+    #message(STATUS "CMAKE_REQUIRED_LIBRARIES = ${_x11extra_link_libraries}")
+    #message(STATUS "CMAKE_REQUIRED_INCLUDES = ${Qt5X11Extras_INCLUDE_DIRS}")
+    #message(STATUS "CMAKE_REQUIRED_FLAGS = ${CMAKE_REQUIRED_FLAGS}")
     check_cxx_source_compiles(
             "
             #include <QtX11Extras/QX11Info>