in the case of GCC always build jcdctmgr.c with "-O1" (ticket #519)
authorVadim Pisarevsky <no@email>
Sat, 20 Nov 2010 12:59:46 +0000 (12:59 +0000)
committerVadim Pisarevsky <no@email>
Sat, 20 Nov 2010 12:59:46 +0000 (12:59 +0000)
3rdparty/libjpeg/CMakeLists.txt

index 952a212..f73d2ce 100644 (file)
@@ -38,6 +38,10 @@ if(UNIX)
      endif()
 endif()
 
+if(CMAKE_COMPILER_IS_GNUCXX)
+    set_source_files_properties(jcdctmgr.c PROPERTIES COMPILE_FLAGS "-O1")
+endif()
+
 set_target_properties(${the_target}
        PROPERTIES OUTPUT_NAME "${the_target}"
        DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"