mirror of
				https://github.com/facebook/zstd.git
				synced 2025-11-03 20:33:11 +03:00 
			
		
		
		
	allow the existence of a `CMakeLists.txt` file at root, for easier integration with other projects expecting this file at root. Existing integration point, within `build/cmake/`, still works as expected.
		
			
				
	
	
		
			12 lines
		
	
	
		
			386 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			386 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
cmake_minimum_required(VERSION 3.10)
 | 
						|
 | 
						|
# Thin wrapper so `cmake -S .` behaves like `cmake -S build/cmake`.
 | 
						|
# Policy lives in build/cmake; keep parent project language-less.
 | 
						|
project(zstd-superbuild LANGUAGES NONE)
 | 
						|
 | 
						|
if(CMAKE_SOURCE_DIR STREQUAL CMAKE_BINARY_DIR)
 | 
						|
    message(FATAL_ERROR "In-source builds are not supported. Specify -B <build-dir>.")
 | 
						|
endif()
 | 
						|
 | 
						|
add_subdirectory(build/cmake)
 |