Modified some cmake things
This commit is contained in:
parent
2e111c13e9
commit
78b5577ff2
@ -18,6 +18,24 @@ if (GIT_FOUND)
|
|||||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
ERROR_QUIET
|
ERROR_QUIET
|
||||||
)
|
)
|
||||||
|
execute_process(
|
||||||
|
COMMAND ${GIT_EXECUTABLE} rev-parse --abbrev-ref HEAD
|
||||||
|
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
||||||
|
OUTPUT_VARIABLE GIT_BRANCH
|
||||||
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
|
ERROR_QUIET
|
||||||
|
)
|
||||||
|
set(GIT_DEPS "${CMAKE_SOURCE_DIR}/.git/HEAD")
|
||||||
|
if(GIT_BRANCH AND EXISTS "${CMAKE_SOURCE_DIR}/.git/refs/heads/${GIT_BRANCH}")
|
||||||
|
list(APPEND GIT_DEPS "${CMAKE_SOURCE_DIR}/.git/refs/heads/${GIT_BRANCH}")
|
||||||
|
endif()
|
||||||
|
# Optionnel : index pour les modifications stagées
|
||||||
|
if(EXISTS "${CMAKE_SOURCE_DIR}/.git/index")
|
||||||
|
list(APPEND GIT_DEPS "${CMAKE_SOURCE_DIR}/.git/index")
|
||||||
|
endif()
|
||||||
|
|
||||||
|
# On définit la propriété pour le répertoire source.
|
||||||
|
set_directory_properties(PROPERTIES CMAKE_CONFIGURE_DEPENDS "${GIT_DEPS}")
|
||||||
endif()
|
endif()
|
||||||
# Fallback
|
# Fallback
|
||||||
|
|
||||||
|
|||||||
@ -898,7 +898,7 @@ void Engine::initImgui() {
|
|||||||
|
|
||||||
ImGui_ImplVulkan_Init(&initInfo);
|
ImGui_ImplVulkan_Init(&initInfo);
|
||||||
|
|
||||||
_mainDeletionQueue.pushFonction([this]() {
|
_mainDeletionQueue.pushFunction([this, imguiPool]() {
|
||||||
ImGui_ImplVulkan_Shutdown();
|
ImGui_ImplVulkan_Shutdown();
|
||||||
vkDestroyDescriptorPool(
|
vkDestroyDescriptorPool(
|
||||||
_device,
|
_device,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user