Skip to content

Commit

Permalink
Fix no-python builds
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreinking committed Sep 4, 2024
1 parent f99dbe7 commit 75bf306
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packaging/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,15 @@ write_basic_package_version_file(HalideHelpersConfigVersion.cmake
COMPATIBILITY SameMajorVersion
ARCH_INDEPENDENT)

if (WITH_PYTHON_BINDINGS)
set(extra_paths Halide_Python_INSTALL_CMAKEDIR)
else ()
set(extra_paths "")
endif ()

configure_package_config_file(
common/HalideConfig.cmake HalideConfig.cmake
PATH_VARS Halide_INSTALL_HELPERSDIR Halide_Python_INSTALL_CMAKEDIR
PATH_VARS Halide_INSTALL_HELPERSDIR ${extra_paths}
INSTALL_DESTINATION "${Halide_INSTALL_CMAKEDIR}"
NO_SET_AND_CHECK_MACRO
NO_CHECK_REQUIRED_COMPONENTS_MACRO
Expand Down

0 comments on commit 75bf306

Please sign in to comment.