Skip to content

Commit

Permalink
Work with newer cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
benmwebb committed Mar 28, 2024
1 parent f428091 commit 02871af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
# Are we running cmake from this directory (out of tree build) ?
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 2.8.12...3.6.0)
project(imp_module)

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

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

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${PROJECT_SOURCE_DIR}/tools)

set(SWIG_EXECUTABLE swig CACHE STRING "Swig program")
Expand Down

0 comments on commit 02871af

Please sign in to comment.