]> git.lyx.org Git - lyx.git/commitdiff
cmake: skip configure checks only for msvc
authorPeter Kümmel <syntheticpp@gmx.net>
Sat, 19 Apr 2008 09:08:29 +0000 (09:08 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Sat, 19 Apr 2008 09:08:29 +0000 (09:08 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24341 a592a061-630c-0410-9148-cb99ea01b6c8

development/cmake/CMakeLists.txt

index 1a70bda6e69d4c8a4befb9d2fa42f02953fd46bf..a4e048d6b290ba0f6f8e909820d6e0c227c1611d 100644 (file)
@@ -289,11 +289,11 @@ if(MSVC)
 endif()
 
 # compiler tests, config.h generation
-if(UNIX OR CONFIGURECHECKS)
+if(MSVC AND NOT CONFIGURECHECKS)
+       configure_file(configCompiler.h.msvc ${CMAKE_BINARY_DIR}/configCompiler.h)
+else()
        include(ConfigureChecks.cmake)
        configure_file(configCompiler.h.cmake ${CMAKE_BINARY_DIR}/configCompiler.h)
-else()
-       configure_file(configCompiler.h.msvc ${CMAKE_BINARY_DIR}/configCompiler.h)
 endif()
 configure_file(config.h.cmake ${CMAKE_BINARY_DIR}/config.h)