|
1 | 1 | # PiCode Library
|
2 | 2 | # https://github.com/latchdevel/PiCode
|
3 |
| -# Copyright (c) 2021 Jorge Rivera. All right reserved. |
| 3 | +# Copyright (c) 2021-2022 Jorge Rivera. All right reserved. |
4 | 4 | # License GNU Lesser General Public License v3.0.
|
5 | 5 |
|
6 |
| -cmake_minimum_required(VERSION 3.1) |
| 6 | +cmake_minimum_required(VERSION 3.18) |
7 | 7 |
|
8 | 8 | project(picode)
|
9 | 9 |
|
10 | 10 | # 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 |
13 | 13 |
|
14 | 14 | # Set C/C++ Standard
|
15 | 15 | set(CMAKE_C_STANDARD 11)
|
@@ -74,15 +74,16 @@ endif()
|
74 | 74 |
|
75 | 75 | # Set C++ flags
|
76 | 76 | 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") |
78 | 78 | set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter -Wconversion -Woverloaded-virtual -Wsign-conversion")
|
79 | 79 | elseif(MSVC)
|
80 | 80 | set(MSVC_DISABLED_WARNINGS_LIST
|
81 | 81 | "C4996" # warning C4996: 'may be unsafe/disable deprecation'
|
82 | 82 | # 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 |
85 | 85 | # "C4305" # warning C4305: '=': truncation from 'int' to 'uint16_t'
|
| 86 | + "C4018" # warning C4018: '>': signed/unsigned mismatch |
86 | 87 | "C5105" # warning C5105: macro expansion producing 'defined' has undefined behavior
|
87 | 88 | "C4201" # warning C4201: nonstandard extension used: nameless struct/union
|
88 | 89 | "C4473" # warning C4473: 'printf' : not enough arguments passed for format string
|
|
0 commit comments