From 18074e326057e3e043341ff2ea4368903d567719 Mon Sep 17 00:00:00 2001 From: Edward Hartnett <38856240+edwardhartnett@users.noreply.github.com> Date: Mon, 25 Nov 2024 10:08:30 -0700 Subject: [PATCH] checking for g2c (#772) --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b47843c..f7593b28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,6 +89,11 @@ if (BUILD_WITH_W3EMC) endif() endif() +# We need g2c if G2C_COMPARE is chosen. +if (G2C_COMPARE) + find_package(g2c 1.7.0 REQUIRED) +endif() + # Figure whether user wants a _4, a _d, or both libraries. if(BUILD_4 AND BUILD_D) set(kinds "4" "d")