CMake: Windows DLLs lack version information

The cares.rc was not included in the build for CMake.  Conditionally
add it when building for Windows.

Fix By: Brad House (@bradh352)
Fixes Bug: #460
pull/465/head
bradh352 3 years ago
parent 0e678f2fb2
commit e01dbc6541
  1. 5
      src/lib/CMakeLists.txt

@ -3,6 +3,11 @@
transform_makefile_inc("Makefile.inc" "${PROJECT_BINARY_DIR}/src/lib/Makefile.inc.cmake")
include(${PROJECT_BINARY_DIR}/src/lib/Makefile.inc.cmake)
# Include resource file in windows builds for versioned DLLs
IF (WIN32)
LIST (APPEND CSOURCES cares.rc)
ENDIF()
# Write ares_config.h configuration file. This is used only for the build.
CONFIGURE_FILE (ares_config.h.cmake ${PROJECT_BINARY_DIR}/ares_config.h)

Loading…
Cancel
Save