OPENCV_DEBUG_POSTFIX override CMAKE_DEBUG_POSTFIX (Feature #1443)


Added by wizzup - over 13 years ago. Updated about 13 years ago.


Status:Done Start date:
Priority:Low Due date:
Assignee:Vadim Pisarevsky % Done:

0%

Category:build/install
Target version:2.4.0
Difficulty: Pull request:

Description

I found that setting CMAKE_DEBUG_POSTFIX doesn't effect output lib and dll name but setting CMAKE_RELEASE_POSTFIX do.

My quick and dirty fix is pass the value of CMAKE_DEBUG_POSTFIX to OPENCV_DEBUG_POSTFIX but I don't know if this will cause any bad consequence or not.

The better solution should be keep it default to "d" unless CMAKE_DEBUG_POSTFIX was explicitly specified.

Please take a look at this issue.

opencv-2.3.1/CMakeLists.txt
@ -99,7 +99,7 @
if(WIN32) # Postfix of DLLs:
set(OPENCV_DLLVERSION "${OPENCV_VERSION_MAJOR}${OPENCV_VERSION_MINOR}${OPENCV_VERSION_PATCH}")
- set(OPENCV_DEBUG_POSTFIX d)
+ set(OPENCV_DEBUG_POSTFIX ${CMAKE_DEBUG_POSTFIX})
else() # Postfix of so's:
set(OPENCV_DLLVERSION "")


Associated revisions

Revision a6e8e5dd
Added by Andrey Kamaev about 13 years ago

Fixed #1443

History

Updated by Alexander Shishkov about 13 years ago

  • Category set to build/install

Updated by Andrey Kamaev about 13 years ago

Thanks for reporting!

  • Status changed from Open to Done
  • Target version set to 2.4.0

Also available in: Atom PDF