File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -43,23 +43,22 @@ jobs:
4343 cmake --build "${{ github.workspace }}/cmake-build" --config "Debug" --target install
4444 cmake --build "${{ github.workspace }}/cmake-build" --config "Release" --target install
4545
46- # appended to the end of the build-shared job steps:
4746 - name : Check Installed Headers Compile Cleanly
4847 run : |
4948 mkdir -p header-check
5049 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
5251 cmake_minimum_required(VERSION 3.15)
5352 project(HeaderCheck C)
5453
55- file(GLOB PUBLIC_HEADERS "\${MYAPI_INCLUDE_DIR }/*.h")
54+ file(GLOB PUBLIC_HEADERS "\${PM_INCLUDE_DIR }/*.h")
5655
5756 foreach(header IN LISTS PUBLIC_HEADERS)
5857 get_filename_component(header_file "\${header}" NAME)
5958 set(test_source "\${CMAKE_BINARY_DIR}/check_\${header_file}.c")
6059 file(WRITE "\${test_source}" "#include <\${header_file}>\nint main(void) { return 0; }\n")
6160 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 }")
6362 endforeach()
6463 EOF
6564 cmake --build build --parallel
You can’t perform that action at this time.
0 commit comments