diff --git a/CMakeLists.txt b/CMakeLists.txt
index 58a5b45..b41e6a3 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,3 +1,5 @@
+cmake_minimum_required(VERSION 3.10)
+
 PROJECT(pslib C)
 option(ENABLE_BMP   "Build with BMP support" ON)

@@ -73,7 +75,6 @@ INCLUDE(CheckFunctionExists)
 INCLUDE(TestBigEndian)
 test_big_endian(WORDS_BIGENDIAN)

-SUBDIRS( src )
 SET(SOURCES
        src/pslib.c
        src/ps_memory.c