Skip to content

Commit 854eb4f

Browse files
committed
[ci] Changes in CMakeLists.txt
1 parent 7972e08 commit 854eb4f

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ jobs:
2626
with:
2727
path: ${{ env.WORKSPACE_SRC_PATH }}
2828

29+
- name: Print workspace variables
30+
shell: bash
31+
run: |
32+
echo "WORKSPACE_BUILD_PATH: $WORKSPACE_BUILD_PATH"
33+
echo "WORKSPACE_INSTALL_PATH: $WORKSPACE_INSTALL_PATH"
34+
echo "SOFA_ROOT: $SOFA_ROOT"
35+
echo "PWD: $(pwd)"
36+
2937
- name: Build and install
3038
id: build-install
3139
shell: bash

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ target_link_libraries(${PROJECT_NAME}
5050
)
5151

5252
## Install rules for the library and headers; CMake package configurations files
53-
set(${PROJECT_NAME}_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/src")
54-
target_include_directories(${PROJECT_NAME} PUBLIC "$<BUILD_INTERFACE:${${PROJECT_NAME}_INCLUDE_DIRS}>")
55-
target_include_directories(${PROJECT_NAME} PUBLIC "$<INSTALL_INTERFACE:include/${PROJECT_NAME}>")
53+
set(${PROJECT_NAME}_INCLUDE_DIRS "include/${PROJECT_NAME}")
54+
target_include_directories(${PROJECT_NAME} PUBLIC "$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>")
55+
target_include_directories(${PROJECT_NAME} PUBLIC "$<INSTALL_INTERFACE:${${PROJECT_NAME}_INCLUDE_DIRS}>")
5656
sofa_create_package_with_targets(PACKAGE_NAME ${PROJECT_NAME} PACKAGE_VERSION 0.1 TARGETS ${PROJECT_NAME} INCLUDE_INSTALL_DIR ${${PROJECT_NAME}_INCLUDE_DIRS})

0 commit comments

Comments
 (0)