Skip to content

Commit

Permalink
dealing with option USE_G2C_API
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Dec 31, 2024
1 parent ae21191 commit 2e37dce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ endif()
# There was a bug in jasper for the intel compiler that was fixed in
# 2.0.25.
find_package(Jasper 2.0.25 REQUIRED)
find_package(g2c REQUIRED)
find_package(PNG REQUIRED)
find_package(bacio REQUIRED)
if(bacio_VERSION LESS 2.5.0)
Expand All @@ -91,8 +90,10 @@ if (BUILD_WITH_W3EMC)
endif()

# We need g2c if G2C_COMPARE is chosen.
if (G2C_COMPARE)
find_package(g2c 1.7.0 REQUIRED)
if (G2C_COMPARE or USE_G2C_API)
find_package(g2c 2.1.0 REQUIRED)
else()
find_package(g2c REQUIRED)
endif()

# Figure whether user wants a _4, a _d, or both libraries.
Expand Down

0 comments on commit 2e37dce

Please sign in to comment.