File tree Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Expand file tree Collapse file tree 2 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -119,17 +119,21 @@ if (MSVC)
119
119
endif ()
120
120
if (LIBPLZMA_OPT_MSVC_MULTITHREAD_STATIC )
121
121
if (CMAKE_BUILD_TYPE MATCHES Debug )
122
+ message ("Using Multithreaded Run-Time Debug Library(LIBCMTD.lib)" )
122
123
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MTd" )
123
124
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MTd" )
124
125
else ()
126
+ message ("Using Multithreaded Run-Time Library(LIBCMT.lib)" )
125
127
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MT" )
126
128
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MT" )
127
129
endif ()
128
130
else ()
129
131
if (CMAKE_BUILD_TYPE MATCHES Debug )
132
+ message ("Using Multithreaded Run-Time Debug DLL Library(MSVCRTD.lib)" )
130
133
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MDd" )
131
134
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MDd" )
132
135
else ()
136
+ message ("Using Multithreaded Run-Time DLL Library(MSVCRT.lib)" )
133
137
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /MD" )
134
138
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MD" )
135
139
endif ()
Original file line number Diff line number Diff line change @@ -260,17 +260,22 @@ const char * LIBPLZMA_NONNULL plzma_version(void) {
260
260
// Causes the application to use the multithread-specific and DLL-specific version of the run-time library.
261
261
// Defines _MT and _DLL and causes the compiler to place the library name MSVCRT.lib into the .obj file.
262
262
// /MD (MSVCRT.lib) | /MDd (MSVCRTD.lib)
263
- " : run-time multithreaded DLL"
264
- # else
263
+ # if defined(_DEBUG)
264
+ " : multithreaded run-time debug DLL"
265
+ # else
266
+ " : multithreaded run-time DLL"
267
+ # endif // _DEBUG
268
+ # else // !_DLL
265
269
// Causes the application to use the multithread, static version of the run-time library.
266
270
// Defines _MT and causes the compiler to place the library name LIBCMT.lib into the .obj file
267
271
// so that the linker will use LIBCMT.lib to resolve external symbols.
268
272
// /MT (LIBCMT.lib) | /MTd (LIBCMTD.lib)
269
- " : run-time multithreaded static"
273
+ # if defined(_DEBUG)
274
+ " : multithreaded run-time debug"
275
+ # else
276
+ " : multithreaded run-time"
277
+ # endif // _DEBUG
270
278
# endif // _DLL
271
- # if defined(_DEBUG)
272
- " (debug)"
273
- # endif // _DEBUG
274
279
# endif // _MT && _MT > 0
275
280
#endif
276
281
You can’t perform that action at this time.
0 commit comments