--- CMakeLists.txt.orig	2023-09-10 07:23:28 UTC
+++ CMakeLists.txt
@@ -1,8 +1,13 @@
+cmake_minimum_required(VERSION 3.15)
+
+find_package(Spglib REQUIRED)
+find_package(Python3 COMPONENTS REQUIRED Interpreter Development.Module NumPy)
+
 Python3_add_library(Spglib_python MODULE WITH_SOABI _spglib.c)
 set_target_properties(Spglib_python PROPERTIES
 		OUTPUT_NAME _spglib)
 target_link_libraries(Spglib_python PRIVATE
-		Spglib_symspg Python3::NumPy)
+		Spglib::symspg Python3::NumPy)
 if (NOT Python_INSTALL_DIR)
 	if (SKBUILD)
 		# If built with scikit-build-core, let it handle the installation
@@ -12,7 +17,7 @@ if (NOT Python_INSTALL_DIR)
 		set(Python_INSTALL_DIR ${Python3_SITEARCH}/spglib)
 	endif ()
 endif ()
-if (SPGLIB_INSTALL)
+if (TRUE)
 	if (WIN32)
 		# Windows needs RUNTIME as well to install the .dll file to
 		install(TARGETS Spglib_symspg
@@ -22,9 +27,9 @@ if (SPGLIB_INSTALL)
 	else ()
 		# TODO: Cmake forces to install PUBLIC_HEADER when defined
 		# https://gitlab.kitware.com/cmake/cmake/-/issues/24326
-		install(TARGETS Spglib_symspg
-				LIBRARY DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime
-				PUBLIC_HEADER DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime)
+		#install(TARGETS Spglib_symspg
+		#		LIBRARY DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime
+		#		PUBLIC_HEADER DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime)
 	endif ()
 	install(TARGETS Spglib_python
 			LIBRARY DESTINATION ${Python_INSTALL_DIR} COMPONENT Spglib_Runtime)
