Skip to content

Commit

Permalink
llvm-16 fix for downstream projects
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf committed Mar 22, 2023
1 parent 237cbbd commit 324b2e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -14,7 +14,7 @@ project(symengine LANGUAGES C CXX)

set(SYMENGINE_MAJOR_VERSION 0)
set(SYMENGINE_MINOR_VERSION 10)
set(SYMENGINE_PATCH_VERSION 0)
set(SYMENGINE_PATCH_VERSION 1)
set(SYMENGINE_VERSION ${SYMENGINE_MAJOR_VERSION}.${SYMENGINE_MINOR_VERSION}.${SYMENGINE_PATCH_VERSION})

set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake ${CMAKE_MODULE_PATH})
Expand Down
8 changes: 8 additions & 0 deletions cmake/SymEngineConfig.cmake.in
Expand Up @@ -33,6 +33,14 @@

cmake_minimum_required(VERSION 2.8.12)

if (POLICY CMP0074)
cmake_policy(SET CMP0074 NEW)
endif()

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

set(SYMENGINE_CXX_FLAGS "@CMAKE_CXX_FLAGS@")
set(SYMENGINE_CXX_FLAGS_RELEASE "@CMAKE_CXX_FLAGS_RELEASE@")
set(SYMENGINE_CXX_FLAGS_DEBUG "@CMAKE_CXX_FLAGS_DEBUG@")
Expand Down

0 comments on commit 324b2e0

Please sign in to comment.