From 0682870bf7038b294185342a0c9b79e377c7b957 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Thu, 18 May 2017 11:51:44 +0200 Subject: build: Fix bad if check This fixes a bad if check for the version of cmake. --- include/ouroboros/wrap/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/ouroboros/wrap/CMakeLists.txt b/include/ouroboros/wrap/CMakeLists.txt index 405f7157..eb44ed33 100644 --- a/include/ouroboros/wrap/CMakeLists.txt +++ b/include/ouroboros/wrap/CMakeLists.txt @@ -20,8 +20,7 @@ else () test_and_set_c_compiler_flag_global(-std=c99) # CMake > 3.8 deprecates swig_add_module - if (CMAKE_MAKOR_VERSION VERSION_LESS 3 AND - CMAKE_MINOR_VERSION VERSION_LESS 8) + if (${CMAKE_VERSION} VERSION_LESS 3.8.0) swig_add_module(ouroboros python ouroboros.i) else () swig_add_library(ouroboros -- cgit v1.2.3