mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-31 14:11:14 +02:00
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
|
- name: build and install library
|
||||||
run: |
|
run: |
|
||||||
cmake -H. -Bbuild
|
cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release
|
||||||
sudo cmake --build build --target install
|
sudo cmake --build build --target install
|
||||||
rm -rf build
|
rm -rf build
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ set_target_properties(Greeter PROPERTIES CXX_STANDARD 17)
|
||||||
target_include_directories(Greeter
|
target_include_directories(Greeter
|
||||||
PUBLIC
|
PUBLIC
|
||||||
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
|
||||||
$<INSTALL_INTERFACE:include>
|
$<INSTALL_INTERFACE:include/${PROJECT_NAME}-${PROJECT_VERSION}>
|
||||||
)
|
)
|
||||||
|
|
||||||
# ---- Create an installable target ----
|
# ---- Create an installable target ----
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue