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