Skip to content

Commit 4efe6db

Browse files
author
kgbook
committed
fix(build):Suppress cmake policy CMP0048 warning when building with cmake 3.x
1 parent d3b17a0 commit 4efe6db

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
cmake_minimum_required(VERSION 2.8.12) # first version with add_compile_options()
2+
3+
if (POLICY CMP0048)
4+
cmake_policy(SET CMP0048 NEW)
5+
endif (POLICY CMP0048)
6+
27
project(SQLiteCpp_Example)
38

49
# add SQLite3 C++ wrapper arround sqlite3 library (and sqlite3 itself provided for ease of use)

0 commit comments

Comments
 (0)