diff --git a/CMakeLists.txt b/CMakeLists.txt index 0bfe1efc..fa61370f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -161,7 +161,7 @@ else() endif() set_property(TARGET ungz PROPERTY POSITION_INDEPENDENT_CODE ON) macro(support_gz exe) - target_sources(${exe} PUBLIC $) + target_sources(${exe} PRIVATE $) endmacro() endif() @@ -473,5 +473,5 @@ if (USE_PYTHON) # Using Python_SITEARCH/SITELIB is not good, because they are absolute # and don't respect CMAKE_INSTALL_PREFIX. # https://discourse.cmake.org/t/findpython3-how-to-specify-local-installation-directory-for-python-module/3580/5 - install(TARGETS gemmi_py DESTINATION "${Python_SITEARCH}") + install(TARGETS gemmi_py DESTINATION "${Python_SITEARCH}" COMPONENT py) endif() diff --git a/pyproject.toml b/pyproject.toml index cdfac965..a4697256 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -64,8 +64,6 @@ cmake.build-type = "Release" cmake.verbose = true [tool.scikit-build.cmake.define] USE_PYTHON = "ON" -BUILD_GEMMI_PROGRAM = "OFF" -INSTALL_DEV_FILES = "OFF" [tool.scikit-build.metadata.version] provider = "scikit_build_core.metadata.regex" diff --git a/tools/gemmi-config.cmake.in b/tools/gemmi-config.cmake.in index 7910e40e..3d36de4f 100644 --- a/tools/gemmi-config.cmake.in +++ b/tools/gemmi-config.cmake.in @@ -1,7 +1,7 @@ @PACKAGE_INIT@ include(CMakeFindDependencyMacro) -find_dependency(ZLIB) +find_package(ZLIB) include("${CMAKE_CURRENT_LIST_DIR}/gemmi-targets.cmake")