Ticket #44355: patch-OpenCVPCHSupport.cmake.diff

File patch-OpenCVPCHSupport.cmake.diff, 1.3 KB (added by Lord-Kamina (Gregorio Litenstein), 10 years ago)

Patch file

  • OpenCVPCHSupport.cmake

    old new  
    113113            STRING(REGEX REPLACE "^ +" "" pchsupport_compiler_cxx_arg1 ${CMAKE_CXX_COMPILER_ARG1})
    114114
    115115            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}
    117117              )
    118118        ELSE(CMAKE_CXX_COMPILER_ARG1)
    119119            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}
    121121              )
    122122        ENDIF(CMAKE_CXX_COMPILER_ARG1)
    123123    ELSE(CMAKE_COMPILER_IS_GNUCXX)
     
    248248    endif()
    249249
    250250    #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}")
    252252
    253253    ADD_CUSTOM_COMMAND(
    254254      OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/${_name}"