fixed a few warnings from VS2010 express
authorVadim Pisarevsky <no@email>
Tue, 17 May 2011 14:15:23 +0000 (14:15 +0000)
committerVadim Pisarevsky <no@email>
Tue, 17 May 2011 14:15:23 +0000 (14:15 +0000)
CMakeLists.txt
samples/cpp/descriptor_extractor_matcher.cpp

index c3a35c9..5526e85 100644 (file)
@@ -1274,11 +1274,14 @@ endif()
 #-----------------------------------\r
 \r
 if(${CMAKE_VERSION} VERSION_GREATER "2.8.0")\r
-       set_property(GLOBAL PROPERTY USE_FOLDERS ON)\r
-       set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "CMakeTargets")          \r
        set(ENABLE_SOLUTION_FOLDERS OFF CACHE BOOL "Solution folder in Visual Studio or in other IDEs")\r
 endif()\r
 \r
+if(ENABLE_SOLUTION_FOLDERS)\r
+    set_property(GLOBAL PROPERTY USE_FOLDERS ON)\r
+    set_property(GLOBAL PROPERTY PREDEFINED_TARGETS_FOLDER "CMakeTargets")\r
+endif()\r
+\r
 #-----------------------------------\r
 # Subdirectories:\r
 #-----------------------------------\r
index 28a2a08..834b401 100644 (file)
@@ -267,7 +267,7 @@ int main(int argc, char** argv)
         if( c == '\x1b' ) // esc
         {
             cout << "Exiting ..." << endl;
-            return 0;
+            break;
         }
         else if( isWarpPerspective )
         {
@@ -276,6 +276,5 @@ int main(int argc, char** argv)
                          ransacReprojThreshold, rng );
         }
     }
-    waitKey(0);
     return 0;
 }