From 425bb3fc244326904c61722ae3cc6020a5a09915 Mon Sep 17 00:00:00 2001 From: Alastair Robertson Date: Wed, 25 Jan 2023 09:51:46 -0800 Subject: [PATCH] Add CMake hook for defining custom build rules --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 94725be..aee2495 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -350,3 +350,8 @@ target_precompile_headers(oicore foreach(TARGET oil oip oid oitb) target_precompile_headers(${TARGET} REUSE_FROM oicore) endforeach() + +# Add a hook for custom CMake rules +if (DEFINED ENV{CMAKE_HOOK}) + include($ENV{CMAKE_HOOK}) +endif()