allow static builds to work with clang and no coordgen (#7416)

This commit is contained in:
Greg Landrum
2024-05-09 04:26:38 +02:00
committed by GitHub
parent a64ab4ef5f
commit 4e0c7d4f67

View File

@@ -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)