1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
Index: rdkit/Code/GraphMol/MolInterchange/CMakeLists.txt
===================================================================
--- rdkit.orig/Code/GraphMol/MolInterchange/CMakeLists.txt
+++ rdkit/Code/GraphMol/MolInterchange/CMakeLists.txt
@@ -1,23 +1,4 @@
-if(NOT EXISTS "${CMAKE_SOURCE_DIR}/External/rapidjson-1.1.0")
- downloadAndCheckMD5("https://github.com/Tencent/rapidjson/archive/v1.1.0.tar.gz"
- "${CMAKE_SOURCE_DIR}/External/rapidjson-1.1.0.tar.gz"
- "badd12c511e081fec6c89c43a7027bce")
- execute_process(COMMAND ${CMAKE_COMMAND} -E tar zxf
- ${CMAKE_SOURCE_DIR}/External/rapidjson-1.1.0.tar.gz
- WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/External)
- # comment out a line which causes a compilation error on some platforms
- # (based on the change which has already been applied to the RapidJSON master branch, see
- # https://github.com/Tencent/rapidjson/blob/ab1842a2dae061284c0a62dca1cc6d5e7e37e346/include/rapidjson/document.h#L414)
- file(READ ${CMAKE_SOURCE_DIR}/External/rapidjson-1.1.0/include/rapidjson/document.h RAPIDJSON_DOCUMENT_H)
- string(REGEX REPLACE
- "( *)(GenericStringRef& operator=\\(const GenericStringRef& rhs\\) { s = rhs\\.s. length = rhs\\.length. })" "\\1//\\2"
- RAPIDJSON_DOCUMENT_H "${RAPIDJSON_DOCUMENT_H}")
- file(WRITE ${CMAKE_SOURCE_DIR}/External/rapidjson-1.1.0/include/rapidjson/document.h "${RAPIDJSON_DOCUMENT_H}")
-else()
- message("-- Found RapidJSON source in ${CMAKE_SOURCE_DIR}/External")
-endif()
-
include_directories(${CMAKE_SOURCE_DIR}/External/rapidjson-1.1.0/include)
|