Skip to content

Commit

Permalink
Remove unnecessary givaro isunit v. isUnit check (cmake)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-torrance committed Sep 28, 2024
1 parent 8ab49ed commit 27ec3eb
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions M2/cmake/check-libraries.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -318,16 +318,7 @@ unset(CMAKE_REQUIRED_LIBRARIES)
unset(CMAKE_REQUIRED_INCLUDES)

###############################################################################
## Set four library related definitions

if(GIVARO_FOUND)
set(CMAKE_REQUIRED_INCLUDES "${GIVARO_INCLUDE_DIRS}")
# whether givaro has isUnit (4.0.3) or isunit (4.0.2)
check_cxx_source_compiles([[#include <givaro/gfq.h>
int main(){class Givaro::GFqDom<long int> foo; foo.isunit(0);return 0;}]] HAVE_GIVARO_isunit)
else()
unset(HAVE_GIVARO_isunit CACHE)
endif()
## Set several library related definitions

if(FACTORY_FOUND)
set(CMAKE_REQUIRED_INCLUDES "${FACTORY_INCLUDE_DIR}")
Expand Down

0 comments on commit 27ec3eb

Please sign in to comment.