mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
allow static builds to work with clang and no coordgen (#7416)
This commit is contained in:
2
External/CoordGen/CMakeLists.txt
vendored
2
External/CoordGen/CMakeLists.txt
vendored
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user