Skip to content

Commit 539485e

Browse files
committed
Set version to v1.4 backwards compatibility broken
1 parent 157ab09 commit 539485e

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

CMakeLists.txt

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
# PiCode Library
22
# https://github.com/latchdevel/PiCode
3-
# Copyright (c) 2021 Jorge Rivera. All right reserved.
3+
# Copyright (c) 2021-2022 Jorge Rivera. All right reserved.
44
# License GNU Lesser General Public License v3.0.
55

6-
cmake_minimum_required(VERSION 3.1)
6+
cmake_minimum_required(VERSION 3.18)
77

88
project(picode)
99

1010
# Set version number for shared libraries and executables
11-
set(CU_VERSION 1.3) # current version
12-
set(SO_VERSION 1.1) # compatibility version
11+
set(CU_VERSION 1.4) # current version
12+
set(SO_VERSION 1.4) # compatibility version
1313

1414
# Set C/C++ Standard
1515
set(CMAKE_C_STANDARD 11)
@@ -74,15 +74,16 @@ endif()
7474

7575
# Set C++ flags
7676
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
77-
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -fcommon")
77+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wno-unused-parameter -Wno-unused-variable -Wno-sign-compare -fcommon")
7878
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter -Wconversion -Woverloaded-virtual -Wsign-conversion")
7979
elseif(MSVC)
8080
set(MSVC_DISABLED_WARNINGS_LIST
8181
"C4996" # warning C4996: 'may be unsafe/disable deprecation'
8282
# To disable deprecation, use _CRT_SECURE_NO_WARNINGS.
83-
# "C4244" # warning C4244: '=': conversion from '__int64' to 'int', possible loss of data
84-
# "C4267" # warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
83+
"C4244" # warning C4244: '=': conversion from '__int64' to 'int', possible loss of data
84+
"C4267" # warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
8585
# "C4305" # warning C4305: '=': truncation from 'int' to 'uint16_t'
86+
"C4018" # warning C4018: '>': signed/unsigned mismatch
8687
"C5105" # warning C5105: macro expansion producing 'defined' has undefined behavior
8788
"C4201" # warning C4201: nonstandard extension used: nameless struct/union
8889
"C4473" # warning C4473: 'printf' : not enough arguments passed for format string

0 commit comments

Comments
 (0)