Skip to content

Commit 213f959

Browse files
committed
fix missing exported targets for static runtime builts
1 parent 5c1a78c commit 213f959

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,3 +277,8 @@ if(LLVM_FOUND)
277277
endif()
278278

279279
set(RUNTIME_LIBRARIES runtime ${RUNTIME_JIT_LIBRARIES} PARENT_SCOPE)
280+
# If the runtime is built as a static library, individual
281+
# dependencies must be exported via CMake packaging
282+
if(NOT AnyDSL_runtime_BUILD_SHARED)
283+
set(RUNTIME_LIBRARIES ${RUNTIME_LIBRARIES} runtime_base ${RUNTIME_PLATFORMS} PARENT_SCOPE)
284+
endif()

0 commit comments

Comments
 (0)