]> git.lyx.org Git - features.git/commitdiff
cmake: force to new build type when reconfiguring
authorPeter Kümmel <syntheticpp@gmx.net>
Wed, 28 Mar 2007 19:23:57 +0000 (19:23 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Wed, 28 Mar 2007 19:23:57 +0000 (19:23 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17616 a592a061-630c-0410-9148-cb99ea01b6c8

development/cmake/CMakeLists.txt

index 2c10af054b76a720620f241fd6359bc9ca23d09b..4485473f415d242444bd5da003f9c69d343296ee 100644 (file)
@@ -51,11 +51,11 @@ if(profile)
        set(profile)
 endif(profile)
 if(release)
-       set(CMAKE_BUILD_TYPE Release)
+       set(CMAKE_BUILD_TYPE Release CACHE TYPE STRING FORCE))
        set(release)
 endif(release)
 if(debug)
-       set(CMAKE_BUILD_TYPE Debug)
+       set(CMAKE_BUILD_TYPE Debug CACHE TYPE STRING FORCE))
 endif(debug)
 
 if(shared)