mirror of
https://github.com/rdkit/rdkit.git
synced 2026-06-03 21:44:30 +08:00
fix a small inconsistency in the name of the inchi package (#3182)
with cmake 3.17.2 the original code produced the following warning: "The package name passed to `find_package_handle_standard_args` (INCHI) does not match the name of the calling package (Inchi). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern."
This commit is contained in:
committed by
GitHub
parent
5f7affafb6
commit
29ad06f099
@@ -18,7 +18,7 @@ else()
|
||||
find_path(INCHI_INCLUDE_DIR NAMES inchi_api.h PATHS /usr/include/inchi )
|
||||
find_library(INCHI_LIBRARY NAMES inchi Inchi)
|
||||
include(FindPackageHandleStandardArgs)
|
||||
find_package_handle_standard_args(INCHI
|
||||
find_package_handle_standard_args(Inchi
|
||||
"Could NOT find InChI in system locations" INCHI_LIBRARY
|
||||
INCHI_INCLUDE_DIR)
|
||||
set(INCHI_INCLUDE_DIRS ${INCHI_INCLUDE_DIR} )
|
||||
|
||||
Reference in New Issue
Block a user