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:
Greg Landrum
2020-01-28 14:52:58 +01:00
committed by Brian Kelley
parent 68e8f10b95
commit 3851380800
3 changed files with 5 additions and 27 deletions

View File

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

View File

@@ -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;
}