Ticket #44355: patch-OpenCVPCHSupport.cmake.diff
File patch-OpenCVPCHSupport.cmake.diff, 1.3 KB (added by Lord-Kamina (Gregorio Litenstein), 10 years ago) |
---|
-
OpenCVPCHSupport.cmake
old new 113 113 STRING(REGEX REPLACE "^ +" "" pchsupport_compiler_cxx_arg1 ${CMAKE_CXX_COMPILER_ARG1}) 114 114 115 115 SET(${out_command} 116 ${CMAKE_CXX_COMPILER} ${pchsupport_compiler_cxx_arg1} ${_compile_FLAGS} -x c++-header -o ${_output} ${_input}116 ${CMAKE_CXX_COMPILER} ${pchsupport_compiler_cxx_arg1} -c ${_compile_FLAGS} -x c++-header -o ${_output} ${_input} 117 117 ) 118 118 ELSE(CMAKE_CXX_COMPILER_ARG1) 119 119 SET(${out_command} 120 ${CMAKE_CXX_COMPILER} ${_compile_FLAGS} -x c++-header -o ${_output} ${_input}120 ${CMAKE_CXX_COMPILER} -c ${_compile_FLAGS} -x c++-header -o ${_output} ${_input} 121 121 ) 122 122 ENDIF(CMAKE_CXX_COMPILER_ARG1) 123 123 ELSE(CMAKE_COMPILER_IS_GNUCXX) … … 248 248 endif() 249 249 250 250 #MESSAGE("_compile_FLAGS: ${_compile_FLAGS}") 251 #message("COMMAND ${CMAKE_CXX_COMPILER} ${_compile_FLAGS} -x c++-header -o ${_output} ${_input}")251 #message("COMMAND ${CMAKE_CXX_COMPILER} -c ${_compile_FLAGS} -x c++-header -o ${_output} ${_input}") 252 252 253 253 ADD_CUSTOM_COMMAND( 254 254 OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${_name}"