mymath.sty is erased by CMake rule OpenCV 2.3 (Bug #1163)


Added by Yvonnic MM over 13 years ago. Updated over 13 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:- % Done:

0%

Category:documentation
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

when building doc with Visual Studio 2008, CMake 2.8 :

in doc\CMakeLists.txt :
line 33
if ${CMAKE_CURRENT_SOURCE_DIR} == ${CMAKE_CURRENT_BINARY_DIR} then mymatch.sty is replaced with an empty file

(in docs.rule the generated command is :
"C:\Program Files\CMake 2.8\bin\cmake.exe" -E copy D:/OpenCV23/doc/mymatch.sty D:/OpenCV23/doc
which effect is erasing the file)

then documentation building fail.


Associated revisions

Revision 5c23d3d9
Added by Vadim Pisarevsky over 13 years ago

possibly fixed occasional deletion of mymath.sty in the case of in-source builds (though, in-source builds are still not recommended) - ticket #1163.

Revision 98cd04c1
Added by Roman Donchenko over 11 years ago

Merge pull request #1163 from kdrobnyh:Morphology

History

Updated by Vadim Pisarevsky over 13 years ago

In CMake using the same output directory and the source directory is a bad practice in general. In r5643 (branch 2.3) the warning is added to the output of CMake.

  • Status changed from Open to Done
  • (deleted custom field) set to wontfix

Updated by Yvonnic MM over 13 years ago

the command : -E copy_if_different

COMMAND ${CMAKE_COMMAND} -E copy_if_different ${CMAKE_CURRENT_SOURCE_DIR}/mymath.sty ${CMAKE_CURRENT_BINARY_DIR}

should be use instead of -E copy since it doesn't delete the file in this case.

  • Status changed from Done to Cancelled
  • (deleted custom field) deleted (wontfix)

Updated by Yvonnic MM over 13 years ago

please can you patch it ?

Updated by Vadim Pisarevsky over 13 years ago

fixed in r5868 (branch 2.3)

  • Status changed from Cancelled to Done
  • (deleted custom field) set to fixed

Also available in: Atom PDF