mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
Allow CLI override of CMAKE_DEBUG_POSTFIX (#1391)
Allows cmake -DCMAKE_BUILD_TYPE=DEBUG -DCMAKE_DEBUG_POSTFIX= for a debug build with the regular library names.
This commit is contained in:
parent
d8ecb88f12
commit
1fe626c4da
@ -37,7 +37,9 @@ if(NOT CMAKE_BUILD_TYPE)
|
||||
endif()
|
||||
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
|
||||
|
||||
set(CMAKE_DEBUG_POSTFIX d)
|
||||
if(NOT DEFINED CMAKE_DEBUG_POSTFIX)
|
||||
set(CMAKE_DEBUG_POSTFIX d)
|
||||
endif()
|
||||
|
||||
set(EVENT__LIBRARY_TYPE DEFAULT CACHE STRING
|
||||
"Set library type to SHARED/STATIC/BOTH (default SHARED for MSVC, otherwise BOTH)")
|
||||
|
Loading…
x
Reference in New Issue
Block a user