switch to using target_compile_definitions instead of add_definitions (#3350)

* switch to using target_compile_definitions instead of add_definitions

* missed one
This commit is contained in:
Greg Landrum
2020-08-21 04:49:07 +02:00
committed by GitHub
parent f1dc20e3ef
commit c0a62388a2
56 changed files with 67 additions and 96 deletions

View File

@@ -1,7 +1,7 @@
add_definitions(-DRDKIT_CHEMICALFEATURES_BUILD)
rdkit_library(ChemicalFeatures FreeChemicalFeature.cpp
LINK_LIBRARIES RDGeneral RDGeometryLib)
target_compile_definitions(ChemicalFeatures PRIVATE RDKIT_CHEMICALFEATURES_BUILD)
rdkit_headers(ChemicalFeature.h
FreeChemicalFeature.h DEST ChemicalFeatures)