Skip to content

Commit

Permalink
use cmake 3.5 as minimum
Browse files Browse the repository at this point in the history
  • Loading branch information
hoene committed Oct 19, 2024
1 parent 03caa3f commit 444d2c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.12)
cmake_minimum_required(VERSION 3.5)
project(libmysofa C CXX)

include(CheckCCompilerFlag)
Expand All @@ -20,7 +20,7 @@ set(CPACK_GENERATOR "DEB")
set(CPACK_DEBIAN_PACKAGE_MAINTAINER "IOhannes m zmölnig")
set(CPACK_PACKAGE_VERSION_MAJOR "1")
set(CPACK_PACKAGE_VERSION_MINOR "3")
set(CPACK_PACKAGE_VERSION_PATCH "2")
set(CPACK_PACKAGE_VERSION_PATCH "3")
set(CPACK_DEBIAN_PACKAGE_DEPENDS "zlib1g")

set(PKG_CONFIG_PRIVATELIBS "")
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ Then, to compile enter following commands
> cmake -DCMAKE_BUILD_TYPE=Debug ..
> make all test
> make -j8 all
> ctest -j8
If you need an Debian package, call

Expand Down
12 changes: 1 addition & 11 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
macro(use_c99)
if(CMAKE_VERSION VERSION_LESS "3.1")
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
set(CMAKE_C_FLAGS "--std=gnu99 -pedantic ${CMAKE_C_FLAGS}")
endif()
else()
set(CMAKE_C_STANDARD 99)
endif()
endmacro(use_c99)

use_c99()
set(CMAKE_C_STANDARD 99)

configure_file(config.h.in config.h)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
Expand Down

0 comments on commit 444d2c1

Please sign in to comment.