From 4e0c7d4f678fb3c558666f99366eb751571a0f48 Mon Sep 17 00:00:00 2001 From: Greg Landrum Date: Thu, 9 May 2024 04:26:38 +0200 Subject: [PATCH] allow static builds to work with clang and no coordgen (#7416) --- External/CoordGen/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/External/CoordGen/CMakeLists.txt b/External/CoordGen/CMakeLists.txt index 52a072e99..cb78c31e6 100644 --- a/External/CoordGen/CMakeLists.txt +++ b/External/CoordGen/CMakeLists.txt @@ -87,7 +87,9 @@ if(RDK_BUILD_COORDGEN_SUPPORT) rdkit_library(coordgen ${CGSOURCES} SHARED) if(CMAKE_C_COMPILER_ID STREQUAL "Clang") target_compile_options(coordgen PUBLIC -Wno-unused-but-set-variable) +if(RDK_INSTALL_STATIC_LIBS) target_compile_options(coordgen_static PUBLIC -Wno-unused-but-set-variable) +endif() endif() install(TARGETS coordgen DESTINATION ${RDKit_LibDir}) set(RDK_COORDGEN_LIBS coordgen CACHE STRING "the external libraries" FORCE)