Code: Select all
SET(CMAKE_CXX_FLAGS "/nologo /W3 /Gy /EHsc")
SET(CMAKE_CXX_FLAGS_DEBUG "/MTd /Z7 /Od")
SET(CMAKE_CXX_FLAGS_RELEASE "/MT /O2")
SET(CMAKE_CXX_FLAGS_MINSIZEREL "/MT /O2")
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/MTd /Z7 /Od")
Code: Select all
SET(DCMTK_ALLOW_RESETTING_COMPILER_FLAGS ON CACHE BOOL
"Allow DCMTK to overrule the CMake cache and reset the compiler flags")
IF(DCMTK_ALLOW_RESETTING_COMPILER_FLAGS)
# settings for Microsoft Visual C
(Setting C flags according to DCMTK preferences...)
# settings for Microsoft Visual C++
(Setting C++ flags according to DCMTK preferences...)
ENDIF(DCMTK_ALLOW_RESETTING_COMPILER_FLAGS)
I think it's a very small change (4 lines of code), but it would be very helpful. Do you think it would be feasible for you to modify DCMTK in such a way?