From 010cb0edf304035fafd16b7870dce1a4b05fc7b9 Mon Sep 17 00:00:00 2001 From: "Ryan S. Elliott" Date: Fri, 26 Jul 2019 11:10:54 -0500 Subject: [PATCH] Add warning to cmake if PKG_KIM=ON but DOWNLOAD_KIM not set & KIM is not found This can be a scenario where the user has KIM installed but does not have the environment setup correctly to be found. The config. step should provide some warning of this. Otherwise, it is easy to miss the fact that KIM is being downloaded and built. --- cmake/Modules/Packages/KIM.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/Modules/Packages/KIM.cmake b/cmake/Modules/Packages/KIM.cmake index 1a9dcf83a4..5987ebbf0a 100644 --- a/cmake/Modules/Packages/KIM.cmake +++ b/cmake/Modules/Packages/KIM.cmake @@ -9,6 +9,7 @@ if(PKG_KIM) if(KIM-API_FOUND) set(DOWNLOAD_KIM_DEFAULT OFF) else() + message(WARNING "KIM-API package not found. We will download and build our own") set(DOWNLOAD_KIM_DEFAULT ON) endif() option(DOWNLOAD_KIM "Download KIM-API from OpenKIM instead of using an already installed one" ${DOWNLOAD_KIM_DEFAULT})