File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -100,39 +100,6 @@ option(LLAMA_BUILD_TESTS "llama: build tests" ${LLAMA_STANDALO
100100option (LLAMA_BUILD_EXAMPLES "llama: build examples" ${LLAMA_STANDALONE} )
101101option (LLAMA_BUILD_SERVER "llama: build server example" ON )
102102
103- #
104- # Build info header
105- #
106-
107- # Generate initial build-info.h
108- include (${CMAKE_CURRENT_SOURCE_DIR} /scripts/build -info.cmake)
109-
110- if (EXISTS "${CMAKE_CURRENT_SOURCE_DIR} /.git" )
111- set (GIT_DIR "${CMAKE_CURRENT_SOURCE_DIR} /.git" )
112-
113- # Is git submodule
114- if (NOT IS_DIRECTORY "${GIT_DIR} " )
115- file (READ ${GIT_DIR} REAL_GIT_DIR_LINK)
116- string (REGEX REPLACE "gitdir: (.*)\n $" "\\ 1" REAL_GIT_DIR ${REAL_GIT_DIR_LINK} )
117- set (GIT_DIR "${CMAKE_CURRENT_SOURCE_DIR} /${REAL_GIT_DIR} " )
118- endif ()
119-
120- # Add a custom target for build-info.h
121- add_custom_target (BUILD_INFO ALL DEPENDS "${CMAKE_CURRENT_SOURCE_DIR} /build-info.h" )
122-
123- # Add a custom command to rebuild build-info.h when .git/index changes
124- add_custom_command (
125- OUTPUT "${CMAKE_CURRENT_SOURCE_DIR} /build-info.h"
126- COMMENT "Generating build details from Git"
127- COMMAND ${CMAKE_COMMAND} -P "${CMAKE_CURRENT_SOURCE_DIR} /scripts/build-info.cmake"
128- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
129- DEPENDS "${GIT_DIR} /index"
130- VERBATIM
131- )
132- else ()
133- message (WARNING "Git repository not found; to enable automatic generation of build info, make sure Git is installed and the project is a Git repository." )
134- endif ()
135-
136103#
137104# Compile flags
138105#
You can’t perform that action at this time.
0 commit comments