summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/ouroboros/wrap/CMakeLists.txt3
1 files changed, 1 insertions, 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