fix cmake for GH runner again

Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
This commit is contained in:
Martin 2023-08-30 12:48:34 +02:00
parent a8506b340b
commit 0589b73097
4 changed files with 7 additions and 3 deletions

4
.gitattributes vendored Normal file
View file

@ -0,0 +1,4 @@
*.inf -text
*.icns -text
*.svg -text
*.hex -text

View file

@ -11,14 +11,15 @@ if (GIT_EXECUTABLE AND EXISTS "${CMAKE_SOURCE_DIR}/.git")
)
# get the git version
execute_process(
COMMAND ${GIT_EXECUTABLE} describe --tags
COMMAND ${GIT_EXECUTABLE} describe --tags --dirty
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
OUTPUT_VARIABLE VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
message(STATUS "VERSION: ${VERSION}")
endif()
message(STATUS "VERSION: ${VERSION}")
set(OpenGL_GL_PREFERENCE GLVND)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)

View file

@ -1 +0,0 @@
*.inf -text