We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 821eccb commit be3284dCopy full SHA for be3284d
1 file changed
cmake/writeAll.cmake
@@ -18,5 +18,9 @@ function(writeAll dir output autoLink headers)
18
file(APPEND ${output} "\n")
19
foreach(file ${headers})
20
file(APPEND ${output} "#include <${dir}/${file}>\n")
21
+ get_filename_component(extension ${file} EXT)
22
+ if(NOT "${extension}" STREQUAL ".hpp" AND NOT "${extension}" STREQUAL ".h")
23
+ message(FATAL_ERROR "${file} does not end on hpp or h, this can not be written to ${output}")
24
+ endif()
25
endforeach(file)
26
endfunction()
0 commit comments