Skip to content

Commit dc33801

Browse files
authored
Merge pull request #2 from JoeLoser/cmake_policy
Avoid CMP0048 warning
2 parents 2ccee3d + 56ffcb9 commit dc33801

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎CMakeLists.txt‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ cmake_minimum_required (VERSION 2.8)
77
option(BUILD_SHARED_LIBS "Build shared library." OFF)
88
option(BUILD_TESTING "Build tests." OFF)
99

10+
if (POLICY CMP0048)
11+
# cmake warns if fmem is included from a parent directory whose CMakeLists.txt
12+
# requires a CMake version of 3.0 or later
13+
cmake_policy(SET CMP0048 NEW)
14+
endif()
15+
1016
project (fmem C)
1117

1218
list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/.cmake")

0 commit comments

Comments
 (0)