Skip to content

[QUESTION] Specify custom install directory #55

Description

@JeffR1992

I'm loving KISS-Matcher's performance (both in terms of speed and accuracy), but have a question regarding the installation setup.

Using the default Makefile, is it possible to install KISS-Matcher and its dependencies into a custom directory instead of into system paths? I couldn't seem to find such an option by default, so had to modify the cppinstall and cppinstall_matcher_only sections as follows:

cppinstall: deps ascii_art
	@mkdir -p cpp/kiss_matcher/build
	@cmake -Bcpp/kiss_matcher/build cpp/kiss_matcher -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR)
	@cmake --build cpp/kiss_matcher/build -j$(nproc --all)
	@$(SUDO) cmake --install cpp/kiss_matcher/build
	@$(SUDO) cmake --install cpp/kiss_matcher/build/_deps/robin-build

cppinstall_matcher_only: ascii_art
	@mkdir -p cpp/kiss_matcher/build
	@cmake -Bcpp/kiss_matcher/build cpp/kiss_matcher -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$(INSTALL_DIR)
	@cmake --build cpp/kiss_matcher/build -j$(nproc --all)
	@$(SUDO) cmake --install cpp/kiss_matcher/build

So I could then build and install using:

make cppinstall INSTALL_DIR=/path/to/install/dir

However, if an option to provide an install prefix path is already available, guidance on how to use it would be appreciated. Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions