mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
Remove bogus URFLib library (#2900)
* a couple of URF building cleanups * java wrapper build cleanups * no longer need URF.cpp
This commit is contained in:
committed by
Brian Kelley
parent
68e8f10b95
commit
3851380800
3
External/RingFamilies/CMakeLists.txt
vendored
3
External/RingFamilies/CMakeLists.txt
vendored
@@ -37,8 +37,7 @@ install(TARGETS RingDecomposerLib DESTINATION ${RDKit_LibDir})
|
||||
rdkit_headers(${URFLIB_DIR}/RingDecomposerLib.h DEST "")
|
||||
|
||||
|
||||
rdkit_library(URFLib URF.cpp SHARED LINK_LIBRARIES RingDecomposerLib )
|
||||
set(RDK_URF_LIBS URFLib RingDecomposerLib
|
||||
set(RDK_URF_LIBS RingDecomposerLib
|
||||
CACHE STRING "the libraries for the URF calculation" FORCE)
|
||||
|
||||
endif(RDK_USE_URF)
|
||||
|
||||
25
External/RingFamilies/URF.cpp
vendored
25
External/RingFamilies/URF.cpp
vendored
@@ -1,25 +0,0 @@
|
||||
//
|
||||
// Copyright (C) 2019 Greg Landrum
|
||||
//
|
||||
// @@ All Rights Reserved @@
|
||||
// This file is part of the RDKit.
|
||||
// The contents are covered by the terms of the BSD license
|
||||
// which is included in the file license.txt, found at the root
|
||||
// of the RDKit source tree.
|
||||
//
|
||||
#include <RingDecomposerLib.h>
|
||||
|
||||
// We're just building this library to make dependencies brought in via
|
||||
// cmake's ExternalProject mechanism work properly
|
||||
// As of this writing (July 2019) I was unable to get dependencies to
|
||||
// work correctly without adding this bogus library.
|
||||
|
||||
RDL_API void do_nothing(unsigned n) {
|
||||
RDL_graph *graph = RDL_initNewGraph(n);
|
||||
for (auto i = 0; i < n - 1; ++i) {
|
||||
RDL_addUEdge(graph, i, i + 1);
|
||||
}
|
||||
RDL_data *urfdata = RDL_calculate(graph);
|
||||
RDL_deleteGraph(graph);
|
||||
delete urfdata;
|
||||
}
|
||||
Reference in New Issue
Block a user