Skip to content

Commit

Permalink
Fix building with LLVM 16
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Mar 23, 2023
1 parent dc2daf8 commit ce8743c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
cmake_minimum_required(VERSION 2.8.12)

if (POLICY CMP0057)
cmake_policy(SET CMP0057 NEW) # needed for llvm >= 16
endif ()

project(python_wrapper)

set(CMAKE_PREFIX_PATH ${SymEngine_DIR} ${CMAKE_PREFIX_PATH})

include(GNUInstallDirs)

find_package(SymEngine 0.8.1 REQUIRED CONFIG
PATH_SUFFIXES lib/cmake/symengine cmake/symengine CMake/)
message("SymEngine_DIR : " ${SymEngine_DIR})
Expand Down

0 comments on commit ce8743c

Please # to comment.