Closed fligger closed 1 year ago
I can reproduce. I am not sure of the correct fix, linux support is best effort. If you find a fix please submit a PR
Hey, I do not know how to solve the "build and Install script" issue but Polyhook does build on linux after this pr merge
With cmake you can use polyhook as a subdirectory. Here are some instructions I Hope they help someone:
Open your project root directory and git clone PolyHook to any subdirectory:
git clone --recursive https://github.com/stevemk14ebr/PolyHook_2_0.git
Add the add_subdirectory and target_link_libraries command
cmake_minimum_required(VERSION 3.15.0) # this is very stripped down
project(project)
add_subdirectory(PolyHook_2_0) # path to cloned repo
add_library(project SHARED project.cpp)
#link with dependencies
#include directories will be resolved automatically
target_link_libraries(project PolyHook_2)
everything should work.
That's a typical cmake submodule, good to know that works. I will try to fix the linux install target at some point. I'm a little confused why it doesn't work, as it works for vcpkg on windows
The issue is the capitalization apparently, this works:
cmake --build "./_build" --config Release --target install
Hey when trying to compile the polyhook project using cmake as descriped here I get the following error:
Am I doing anything incorrectly?
Full log: