adjust build include path and set install build type to release
This commit is contained in:
parent
c8fec7d575
commit
bf392d6ae3
2 changed files with 2 additions and 2 deletions
2
.github/workflows/install.yml
vendored
2
.github/workflows/install.yml
vendored
|
@ -15,7 +15,7 @@ jobs:
|
|||
|
||||
- name: build and install library
|
||||
run: |
|
||||
cmake -H. -Bbuild
|
||||
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release
|
||||
sudo cmake --build build --target install
|
||||
rm -rf build
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ set_target_properties(Greeter PROPERTIES CXX_STANDARD 17)
|
|||
target_include_directories(Greeter
|
||||
PUBLIC
|
||||
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
||||
$<INSTALL_INTERFACE:include>
|
||||
$<INSTALL_INTERFACE:include/${PROJECT_NAME}-${PROJECT_VERSION}>
|
||||
)
|
||||
|
||||
# ---- Create an installable target ----
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue