Add d suffix to debug libraries so that can packaged together with optimized builds (Release, RelWithDebInfo, etc)

This commit is contained in:
Alessio M 2020-09-09 17:27:28 +01:00
parent 3b68b5018e
commit dde6916b42

View File

@ -24,7 +24,8 @@ PROJECT(hiredis VERSION "${VERSION}")
# Hiredis requires C99
SET(CMAKE_C_STANDARD 99)
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
SET(CMAKE_DEBUG_POSTFIX d) # so debug and optimized can be packaged together
SET(ENABLE_EXAMPLES OFF CACHE BOOL "Enable building hiredis examples")