Skip to content

Commit e36e9b7

Browse files
committed
update utils.cmake with Nabla target check
1 parent 40f9d1a commit e36e9b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/nbl/builtin/utils.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ function(ADD_CUSTOM_BUILTIN_RESOURCES _TARGET_NAME_ _BUNDLE_NAME_ _BUNDLE_SEARCH
150150
)
151151
endif()
152152

153-
get_target_property(_NABLA_INCLUDE_DIRECTORIES_ Nabla INCLUDE_DIRECTORIES)
153+
if(TARGET Nabla)
154+
get_target_property(_NABLA_INCLUDE_DIRECTORIES_ Nabla INCLUDE_DIRECTORIES)
155+
endif()
154156

155157
if(NOT DEFINED _NABLA_INCLUDE_DIRECTORIES_) # TODO, validate by populating generator expressions if any and checking whether a path to the BuildConfigOptions.h exists per config
156158
message(ERROR "_NABLA_INCLUDE_DIRECTORIES_ has been not found. You are required to define _NABLA_INCLUDE_DIRECTORIES_ containing at least include search directory path to BuildConfigOptions.h")

0 commit comments

Comments
 (0)