File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -55,17 +55,17 @@ jobs:
55
55
56
56
foreach(header IN LISTS PUBLIC_HEADERS)
57
57
file(RELATIVE_PATH header_rel "\${PROJECTM_INCLUDE_DIR}" "\${header}")
58
- set(test_source "\${CMAKE_BINARY_DIR}/check_\${header_rel}.c")
58
+ string(MAKE_C_IDENTIFIER "\${header_rel}" safe_name)
59
+ set(test_source "\${CMAKE_BINARY_DIR}/check_\${safe_name}.c")
59
60
file(WRITE "\${test_source}" "#include <\${header_rel}>\nint main(void){return 0;}\n")
60
- add_executable("check_\${header_rel }" "\${test_source}")
61
- target_include_directories("check_\${header_rel }" PRIVATE "\${PROJECTM_INCLUDE_DIR}")
61
+ add_executable("check_\${safe_name }" "\${test_source}")
62
+ target_include_directories("check_\${safe_name }" PRIVATE "\${PROJECTM_INCLUDE_DIR}")
62
63
endforeach()
63
64
EOF
64
65
65
66
cmake -S header-check -B header-check/build -DCMAKE_C_STANDARD=99
66
67
cmake --build header-check/build --parallel
67
68
68
-
69
69
- name : Upload Artifact
70
70
uses : actions/upload-artifact@v4
71
71
with :
You can’t perform that action at this time.
0 commit comments