remove some warnings with -Wextra (#7339)

This commit is contained in:
Greg Landrum
2024-04-11 11:01:59 +02:00
committed by GitHub
parent c25abde7cf
commit 9367e207d5
10 changed files with 146 additions and 62 deletions

View File

@@ -85,6 +85,10 @@ if(RDK_BUILD_COORDGEN_SUPPORT)
CACHE STRING "CoordGen Include File" FORCE)
file(GLOB CGSOURCES "${COORDGEN_DIR}/*.cpp")
rdkit_library(coordgen ${CGSOURCES} SHARED)
if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
target_compile_options(coordgen PUBLIC -Wno-unused-but-set-variable)
target_compile_options(coordgen_static PUBLIC -Wno-unused-but-set-variable)
endif()
install(TARGETS coordgen DESTINATION ${RDKit_LibDir})
set(RDK_COORDGEN_LIBS coordgen CACHE STRING "the external libraries" FORCE)

View File

@@ -9,8 +9,8 @@ if(NOT DEFINED YAEHMOP_DIR)
endif()
if(NOT EXISTS "${YAEHMOP_DIR}/tightbind/bind.h")
set(RELEASE_NO "2023.03.1")
set(MD5 "e6450f13e02c54d024233b993c3c7ff6")
set(RELEASE_NO "2024.03.1")
set(MD5 "ebbddca4f79ab71544cb1fef9a7eca8a")
downloadAndCheckMD5("https://github.com/greglandrum/yaehmop/archive/refs/tags/v${RELEASE_NO}.tar.gz"
"${CMAKE_CURRENT_SOURCE_DIR}/yaehmop-${RELEASE_NO}.tar.gz" ${MD5})
execute_process(COMMAND ${CMAKE_COMMAND} -E tar zxf