Skip to content

Commit 1f95857

Browse files
committed
make define.h generate again, it looks like policy of custom command had to change and it's no more dependency of Nabla - create proxy target and fix it. Force Nabla to use CMake 3.26
1 parent 469483a commit 1f95857

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# This file is part of the "Nabla Engine".
33
# For conditions of distribution and use, see copyright notice in nabla.h.in or nabla.h
44

5-
cmake_minimum_required(VERSION 3.25)
5+
cmake_minimum_required(VERSION 3.26)
66
#policies
77
cmake_policy(SET CMP0112 NEW)
88

src/nbl/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,13 @@ if(NOT NBL_STATIC_BUILD)
637637
COMMENT "Launching defines.h generation script!"
638638
VERBATIM
639639
)
640+
641+
add_custom_target(generate_nabla_defines ALL
642+
DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/generated/define.h"
643+
VERBATIM
644+
)
645+
646+
add_dependencies(Nabla generate_nabla_defines)
640647
endif()
641648

642649
nbl_install_headers("${NABLA_HEADERS_PUBLIC}" "${NBL_ROOT_PATH}/include")

0 commit comments

Comments
 (0)