]> git.lyx.org Git - lyx.git/blobdiff - development/cmake/ConfigureChecks.cmake
correct filenames
[lyx.git] / development / cmake / ConfigureChecks.cmake
index c6b924ce1220379ed42ba1ce7b9b3882e9d689cc..88ca1a0c5d55ae76c2094dfddff3fe55c755a1f7 100644 (file)
@@ -1,3 +1,9 @@
+# This file is part of LyX, the document processor.
+# Licence details can be found in the file COPYING.
+#
+# Copyright (c) 2006, Peter Kümmel, <syntheticpp@gmx.net>
+#
+
 include(CheckIncludeFile)
 include(CheckIncludeFileCXX)
 include(CheckIncludeFiles)
@@ -124,6 +130,20 @@ check_cxx_source_compiles(
        "
 HAVE_ICONV_CONST)
 
+check_cxx_source_compiles(
+       "
+       int i[ ( sizeof(wchar_t)==2 ? 1 : -1 ) ];
+       int main(){return 0;}
+       "
+SIZEOF_WCHAR_T_IS_2)
+
+check_cxx_source_compiles(
+       "
+       int i[ ( sizeof(wchar_t)==4 ? 1 : -1 ) ];
+       int main(){return 0;}
+       "
+SIZEOF_WCHAR_T_IS_4)
+
 set(PACKAGE lyx)
 set(PACKAGE_VERSION 1.5.0svn)