Allowed spaces in path to OpenCV (tested only Android build)
authorAndrey Kamaev <no@email>
Wed, 13 Jul 2011 15:47:04 +0000 (15:47 +0000)
committerAndrey Kamaev <no@email>
Wed, 13 Jul 2011 15:47:04 +0000 (15:47 +0000)
OpenCVPCHSupport.cmake
modules/java/CMakeLists.txt
samples/android/CMakeLists.txt

index 476f7b7..dae36d1 100644 (file)
@@ -129,9 +129,9 @@ MACRO(_PCH_GET_TARGET_COMPILE_FLAGS _cflags  _header_name _pch_path _dowarn )
     # if you have different versions of the headers for different build types
     # you may set _pch_dowarn
     IF (_dowarn)
-      SET(${_cflags} "${PCH_ADDITIONAL_COMPILER_FLAGS} -include ${CMAKE_CURRENT_BINARY_DIR}/${_header_name} -Winvalid-pch " )
+      SET(${_cflags} "${PCH_ADDITIONAL_COMPILER_FLAGS} -include \"${CMAKE_CURRENT_BINARY_DIR}/${_header_name}\" -Winvalid-pch " )
     ELSE (_dowarn)
-      SET(${_cflags} "${PCH_ADDITIONAL_COMPILER_FLAGS} -include ${CMAKE_CURRENT_BINARY_DIR}/${_header_name} " )
+      SET(${_cflags} "${PCH_ADDITIONAL_COMPILER_FLAGS} -include \"${CMAKE_CURRENT_BINARY_DIR}/${_header_name}\" " )
     ENDIF (_dowarn)
   ELSE(CMAKE_COMPILER_IS_GNUCXX)
 
index 69ba164..e6e1b59 100644 (file)
@@ -171,7 +171,11 @@ endforeach()
 
 #android test project
 if(ANDROID AND BUILD_TESTS AND CAN_BUILD_ANDROID_PROJECTS)
-    file(COPY android_test DESTINATION "${CMAKE_CURRENT_BINARY_DIR}" PATTERN ".svn" EXCLUDE)
+    file(COPY android_test DESTINATION "${CMAKE_CURRENT_BINARY_DIR}"
+        PATTERN ".svn" EXCLUDE
+        PATTERN "gen" EXCLUDE
+        PATTERN "bin" EXCLUDE
+        )
     SET(test_dir "${CMAKE_CURRENT_BINARY_DIR}/android_test")
     
     SET(test_name opencv_test_java)
index 22acbbe..699c544 100644 (file)
@@ -93,7 +93,11 @@ if (BUILD_ANDROID_EXAMPLES)
     list(REMOVE_ITEM android_samples hello-android)
     list(SORT android_samples)
     
-    file(COPY ${android_samples} DESTINATION "${CMAKE_CURRENT_BINARY_DIR}" PATTERN ".svn" EXCLUDE)
+    file(COPY ${android_samples} DESTINATION "${CMAKE_CURRENT_BINARY_DIR}"
+        PATTERN ".svn" EXCLUDE
+        PATTERN "gen" EXCLUDE
+        PATTERN "bin" EXCLUDE
+        )
 
     foreach(sample ${android_samples})
         if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${sample}/AndroidManifest.xml)