Commit 34645658 authored by Alexey Sokolov's avatar Alexey Sokolov

CMake: stop requiring C compiler

parent 5b5ab5cf
......@@ -15,7 +15,7 @@
#
cmake_minimum_required(VERSION 3.1)
project(ZNC VERSION 1.8.0)
project(ZNC VERSION 1.8.0 LANGUAGES CXX)
set(ZNC_VERSION 1.8.x)
set(append_git_version true)
set(alpha_version "") # e.g. "-rc1"
......
......@@ -15,7 +15,7 @@
#
cmake_minimum_required(VERSION 3.0)
project(cxx11check)
project(cxx11check LANGUAGES CXX)
set(CMAKE_VERBOSE_MAKEFILE true)
set(CMAKE_CXX_STANDARD 11)
......
......@@ -15,7 +15,7 @@
#
cmake_minimum_required(VERSION 3.0)
project(perl_check)
project(perl_check LANGUAGES CXX)
set(CMAKE_VERBOSE_MAKEFILE true)
if(APPLE)
......
......@@ -15,7 +15,7 @@
#
cmake_minimum_required(VERSION 3.0)
project(ZNCIntegrationTest)
project(ZNCIntegrationTest LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED true)
......
......@@ -57,7 +57,7 @@ args = parser.parse_args()
with tempfile.TemporaryDirectory() as cmdir:
with open(os.path.join(cmdir, 'CMakeLists.txt'), 'w') as cm:
print('cmake_minimum_required(VERSION 3.1)', file=cm)
print('project(ExternalModules)', file=cm)
print('project(ExternalModules LANGUAGES CXX)', file=cm)
print('find_package(ZNC @ZNC_VERSION_MAJOR@.@ZNC_VERSION_MINOR@ HINTS '
'@CMAKE_INSTALL_FULL_DATADIR@/znc REQUIRED)', file=cm)
if args.verbose > 0:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment