Skip to content

Commit 6bc211b

Browse files
committed
Fix DLL export for NblExt*
1 parent 43b4c16 commit 6bc211b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

cmake/common.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ macro(nbl_create_ext_library_project EXT_NAME LIB_HEADERS LIB_SOURCES LIB_INCLUD
238238
target_link_libraries(${LIB_NAME} PUBLIC Nabla)
239239
target_compile_options(${LIB_NAME} PUBLIC ${LIB_OPTIONS})
240240
target_compile_definitions(${LIB_NAME} PUBLIC ${DEF_OPTIONS})
241+
target_compile_definitions(${LIB_NAME} PRIVATE __NBL_BUILDING_NABLA__)
241242
set_target_properties(${LIB_NAME} PROPERTIES MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
242243

243244
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")

include/nbl/ext/ImGui/ImGui.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#ifndef NBL_EXT_IMGUI_UI_H
22
#define NBL_EXT_IMGUI_UI_H
33

4+
45
namespace nbl::ext::imgui
56
{
67
class NBL_API2 UI final : public core::IReferenceCounted{
78
public:
89

9-
explicit UI(
10+
UI(
1011
core::smart_refctd_ptr<video::ILogicalDevice> device,
1112
int maxFramesInFlight,
1213
core::smart_refctd_ptr<video::IGPURenderpass>& renderPass,

0 commit comments

Comments
 (0)