Debug Suffix / Postfix (CMAKE_DEBUG_POSTFIX)

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
jacobf
Posts: 1
Joined: Tue, 2006-10-24, 17:15

Debug Suffix / Postfix (CMAKE_DEBUG_POSTFIX)

#1 Post by jacobf »

The CMake INSTALL dumps all libs into a single lib folder. Thus, you only get the configuration you last built (debug or optimized). I recommend setting CMAKE_DEBUG_POSTFIX in the root CMakeLists.txt file so that debug libs can coexist with release libs.

For example, I have modified the following section:

Code: Select all

# various CMake-specific settings
SET(CMAKE_USE_RELATIVE_PATHS ON)
SET(CMAKE_SUPPRESS_REGENERATION ON)
MARK_AS_ADVANCED(FORCE EXECUTABLE_OUTPUT_PATH LIBRARY_OUTPUT_PATH)
SET(CMAKE_DEBUG_POSTFIX  "_d")
I also have an updated version of FindDCMTK.cmake that works with the latest release and this update that I could share with you.

I recommend that you guys maintain FindDCMTK.cmake and keep it in sync with your release of DCMTK. It will ease people's adoption of this library.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#2 Post by Jörg Riesmeier »

I recommend setting CMAKE_DEBUG_POSTFIX in the root CMakeLists.txt file so that debug libs can coexist with release libs.
Thank you for your suggestion. I've added an entry to our internal to-do list.

Jörg Riesmeier
ICSMED DICOM Services
ICSMED DICOM Services
Posts: 2217
Joined: Fri, 2004-10-29, 21:38
Location: Oldenburg, Germany

#3 Post by Jörg Riesmeier »

It's now in the git repository. Thanks again for the suggestion.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest