File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -43,23 +43,22 @@ jobs:
43
43
cmake --build "${{ github.workspace }}/cmake-build" --config "Debug" --target install
44
44
cmake --build "${{ github.workspace }}/cmake-build" --config "Release" --target install
45
45
46
- # appended to the end of the build-shared job steps:
47
46
- name : Check Installed Headers Compile Cleanly
48
47
run : |
49
48
mkdir -p header-check
50
49
cd header-check
51
- cmake -S . -B build -DCMAKE_C_STANDARD=99 -DMYAPI_INCLUDE_DIR ="${{ github.workspace }}/install/include" <<EOF
50
+ cmake -S . -B build -DCMAKE_C_STANDARD=99 -DPM_INCLUDE_DIR ="${{ github.workspace }}/install/include" <<EOF
52
51
cmake_minimum_required(VERSION 3.15)
53
52
project(HeaderCheck C)
54
53
55
- file(GLOB PUBLIC_HEADERS "\${MYAPI_INCLUDE_DIR }/*.h")
54
+ file(GLOB PUBLIC_HEADERS "\${PM_INCLUDE_DIR }/*.h")
56
55
57
56
foreach(header IN LISTS PUBLIC_HEADERS)
58
57
get_filename_component(header_file "\${header}" NAME)
59
58
set(test_source "\${CMAKE_BINARY_DIR}/check_\${header_file}.c")
60
59
file(WRITE "\${test_source}" "#include <\${header_file}>\nint main(void) { return 0; }\n")
61
60
add_executable("check_\${header_file}" "\${test_source}")
62
- target_include_directories("check_\${header_file}" PRIVATE "\${MYAPI_INCLUDE_DIR }")
61
+ target_include_directories("check_\${header_file}" PRIVATE "\${PM_INCLUDE_DIR }")
63
62
endforeach()
64
63
EOF
65
64
cmake --build build --parallel
You can’t perform that action at this time.
0 commit comments