Skip to content

Commit

Permalink
Specify install dirs for cmake
Browse files Browse the repository at this point in the history
Summary: Different platforms use different defaults. Of course.

Reviewed By: zpao

Differential Revision: D67311472

fbshipit-source-id: 4485ec6ca8dbd4d7afb695cd8fa285fc2ebb69f7
  • Loading branch information
ckwalsh authored and facebook-github-bot committed Dec 17, 2024
1 parent b74887e commit 7e64245
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions third-party/libaegis/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,20 @@ git_fetch(
genrule(
name = "libaegis-cmake",
out = "out",
cmd = "cmake -DCMAKE_INSTALL_PREFIX=$OUT $(location :libaegis.git) && make install",
cmd = """
cmake \
-DCMAKE_INSTALL_PREFIX=$OUT \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_INCLUDEDIR=include \
$(location :libaegis.git) && \
make install
""",
)

prebuilt_cxx_library(
name = "aegis",
exported_linker_flags = [
"-L$(location :libaegis-cmake)/lib64",
"-L$(location :libaegis-cmake)/lib",
"-laegis",
],
exported_preprocessor_flags = ["-I$(location :libaegis-cmake)/include"],
Expand Down

0 comments on commit 7e64245

Please sign in to comment.