|
|
|
@ -31,7 +31,6 @@ IF (CARES_SHARED) |
|
|
|
|
EXPORT_NAME cares |
|
|
|
|
OUTPUT_NAME cares |
|
|
|
|
COMPILE_PDB_NAME cares |
|
|
|
|
COMPILE_PDB_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} |
|
|
|
|
SOVERSION ${CARES_LIB_VERSION_MAJOR} |
|
|
|
|
VERSION "${CARES_LIB_VERSION_MAJOR}.${CARES_LIB_VERSION_MINOR}.${CARES_LIB_VERSION_RELEASE}" |
|
|
|
|
C_STANDARD 90 |
|
|
|
@ -65,12 +64,14 @@ IF (CARES_SHARED) |
|
|
|
|
COMPONENT Library |
|
|
|
|
${TARGETS_INST_DEST} |
|
|
|
|
) |
|
|
|
|
INSTALL(FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/cares.pdb |
|
|
|
|
IF (MSVC) |
|
|
|
|
INSTALL(FILES $<TARGET_PDB_FILE:${PROJECT_NAME}> |
|
|
|
|
DESTINATION ${CMAKE_INSTALL_BINDIR} |
|
|
|
|
COMPONENT Library |
|
|
|
|
OPTIONAL |
|
|
|
|
) |
|
|
|
|
ENDIF () |
|
|
|
|
ENDIF () |
|
|
|
|
SET (STATIC_SUFFIX "_static") |
|
|
|
|
|
|
|
|
|
# For chain building: add alias targets that look like import libs that would be returned by find_package(c-ares). |
|
|
|
@ -88,7 +89,6 @@ IF (CARES_STATIC) |
|
|
|
|
EXPORT_NAME cares${STATIC_SUFFIX} |
|
|
|
|
OUTPUT_NAME cares${STATIC_SUFFIX} |
|
|
|
|
COMPILE_PDB_NAME cares${STATIC_SUFFIX} |
|
|
|
|
COMPILE_PDB_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} |
|
|
|
|
C_STANDARD 90 |
|
|
|
|
) |
|
|
|
|
|
|
|
|
@ -116,11 +116,6 @@ IF (CARES_STATIC) |
|
|
|
|
INSTALL (TARGETS ${LIBNAME} EXPORT ${PROJECT_NAME}-targets COMPONENT Devel |
|
|
|
|
${TARGETS_INST_DEST} |
|
|
|
|
) |
|
|
|
|
INSTALL(FILES ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/cares${STATIC_SUFFIX}.pdb |
|
|
|
|
DESTINATION ${CMAKE_INSTALL_BINDIR} |
|
|
|
|
COMPONENT Library |
|
|
|
|
OPTIONAL |
|
|
|
|
) |
|
|
|
|
ENDIF () |
|
|
|
|
|
|
|
|
|
# For chain building: add alias targets that look like import libs that would be returned by find_package(c-ares). |
|
|
|
|