You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Note we are adding it anyway regardless _NBL_COMPILE_WITH_OPEN_EXR_, its because we need Half dependecy
167
+
# it generates on fly in its build directory which doesnt have to be linked (class with inline methods),
168
+
# here is where _NBL_COMPILE_WITH_OPEN_EXR_ plays a role - when disabled OpenEXR won't be built and linked
169
+
# but it's core
170
+
171
+
set(_OLD_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
172
+
set(_OLD_BUILD_STATIC_LIBS ${BUILD_STATIC_LIBS})
173
+
set(_OLD_BUILD_TESTING ${BUILD_TESTING})
174
+
set(BUILD_SHARED_LIBSOFF)
175
+
set(BUILD_STATIC_LIBS OFF)
176
+
set(BUILD_TESTING OFF)
177
+
set(PYILMBASE_ENABLE OFFCACHESTRING"" FORCE)
178
+
set(OPENEXR_BUILD_UTILS OFFCACHESTRING"" FORCE)
179
+
set(OPENEXR_FORCE_INTERNAL_IMATH ONCACHESTRING"" FORCE) # TODO: make it a submodule and force using it maybe instead of letting OpenEXR download it from it's github repository
target_link_libraries(Nabla INTERFACE Half) # a workaround which causes Half static library to be linked directly to each Nabla example no matter if Nabla is DLL or not, I think we should really not expose OpenEXR interface to our public Nabla include files
505
+
target_include_directories(
506
+
Nabla PUBLIC $<TARGET_PROPERTY:OpenEXR,INCLUDE_DIRECTORIES>
0 commit comments