1
0
Fork 0
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:
Lars Melchior 2020-04-14 11:13:24 +02:00
parent c8fec7d575
commit bf392d6ae3
2 changed files with 2 additions and 2 deletions

View file

@ -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

View file

@ -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 ----