Skip to content

Commit

Permalink
Fix logical error in CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
climbfuji committed Aug 11, 2020
1 parent 650dda9 commit ad31623
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,12 @@ option(USE_JASPER "Use Jasper?" on)
option(USE_AEC "Use AEC?" off)


# DH* ??? if the "... must be off" statements are correct, the
# test should be for if (USE_PNG) and if(USE_JASPER) *DH
if(USE_G2CLIB)
if(not USE_PNG)
if(USE_PNG)
message(FATAL_ERROR "If USE_G2CLIB is on, USE_PNG must be off")
endif()

if(not USE_JASPER)
if(USE_JASPER)
message(FATAL_ERROR "If USE_G2CLIB is on, USE_JASPER must be off")
endif()
endif()
Expand Down

0 comments on commit ad31623

Please sign in to comment.