[cmake-commits] king committed cmake.cxx 1.357 1.358

cmake-commits at cmake.org cmake-commits at cmake.org
Mon Feb 11 17:00:39 EST 2008


Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv29404/Source

Modified Files:
	cmake.cxx 
Log Message:
ENH: Add global computed property IN_TRY_COMPILE.


Index: cmake.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmake.cxx,v
retrieving revision 1.357
retrieving revision 1.358
diff -u -d -r1.357 -r1.358
--- cmake.cxx	6 Feb 2008 04:10:41 -0000	1.357
+++ cmake.cxx	11 Feb 2008 22:00:36 -0000	1.358
@@ -3303,6 +3303,11 @@
     "at the beginning of native build system generation.  "
     "This property causes it to display details of its analysis to stderr.");
 
+  cm->DefineProperty
+    ("IN_TRY_COMPILE", cmProperty::GLOBAL,
+     "Read-only property that is true during a try-compile configuration.",
+     "True when building a project inside a TRY_COMPILE or TRY_RUN command.");
+
   // ================================================================
   // define variables as well
   // ================================================================
@@ -3512,7 +3517,11 @@
       }
     this->SetProperty("COMMANDS",output.c_str());
     }
-  
+  else if ( propname == "IN_TRY_COMPILE" )
+    {
+    this->SetProperty("IN_TRY_COMPILE",
+                      this->GetIsInTryCompile()? "1":"0");
+    }
   return this->Properties.GetPropertyValue(prop, scope, chain);
 }
 



More information about the Cmake-commits mailing list