Don't enable C language in CMake
spdlog doesn't seem to actually require the C language. Not enabling it results in a significant initial configure time speedup.
This commit is contained in:
		@@ -1,7 +1,6 @@
 | 
				
			|||||||
# Copyright(c) 2019 spdlog authors Distributed under the MIT License (http://opensource.org/licenses/MIT)
 | 
					# Copyright(c) 2019 spdlog authors Distributed under the MIT License (http://opensource.org/licenses/MIT)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cmake_minimum_required(VERSION 3.13)
 | 
					cmake_minimum_required(VERSION 3.10)
 | 
				
			||||||
enable_language(C)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
# ---------------------------------------------------------------------------------------
 | 
					# ---------------------------------------------------------------------------------------
 | 
				
			||||||
# Start spdlog project
 | 
					# Start spdlog project
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
# Copyright(c) 2019 spdlog authors Distributed under the MIT License (http://opensource.org/licenses/MIT)
 | 
					# Copyright(c) 2019 spdlog authors Distributed under the MIT License (http://opensource.org/licenses/MIT)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cmake_minimum_required(VERSION 3.13)
 | 
					cmake_minimum_required(VERSION 3.10)
 | 
				
			||||||
project(spdlog_bench CXX)
 | 
					project(spdlog_bench CXX)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if(NOT TARGET spdlog)
 | 
					if(NOT TARGET spdlog)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
# Copyright(c) 2019 spdlog authors Distributed under the MIT License (http://opensource.org/licenses/MIT)
 | 
					# Copyright(c) 2019 spdlog authors Distributed under the MIT License (http://opensource.org/licenses/MIT)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
cmake_minimum_required(VERSION 3.13)
 | 
					cmake_minimum_required(VERSION 3.10)
 | 
				
			||||||
project(spdlog_examples CXX)
 | 
					project(spdlog_examples CXX)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if(NOT TARGET spdlog)
 | 
					if(NOT TARGET spdlog)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,4 +1,4 @@
 | 
				
			|||||||
cmake_minimum_required(VERSION 3.13)
 | 
					cmake_minimum_required(VERSION 3.10)
 | 
				
			||||||
project(spdlog_utests CXX)
 | 
					project(spdlog_utests CXX)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if (NOT TARGET spdlog)
 | 
					if (NOT TARGET spdlog)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user