INNER CODE UNIT · Python

check_cmake

Silverlan/pragma · build_scripts/build.py:228

def check_cmake(min_version, max_version):
	cmake_path = shutil.which("cmake")
	if not cmake_path:
		# CMake not found
		return False

	try:
		result = subprocess.run(
			[cmake_path, "--version"], 
			capture_output=True, 
			text=True, 
			check=True
		)
		
		match = re.search(r"(\d+\.\d+\.\d+)", result.stdout)
		if not match:
			# Failed to parse version
			return False

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…