Skip to content

Commit b8ced45

Browse files
RealXuChepaceholder
authored andcommitted
Fix compile definition in CMakeLists for static library (#418)
1 parent c1de70e commit b8ced45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ target_link_libraries(QtNodes
166166

167167
target_compile_definitions(QtNodes
168168
PUBLIC
169-
NODE_EDITOR_SHARED
169+
$<IF:$<BOOL:${BUILD_SHARED_LIBS}>, NODE_EDITOR_SHARED, NODE_EDITOR_STATIC>
170170
PRIVATE
171171
NODE_EDITOR_EXPORTS
172172
#NODE_DEBUG_DRAWING

0 commit comments

Comments
 (0)