Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit046112a

Browse files
committed
[grammar example] CMakeLists for shared lib
1 parent384fc72 commit046112a

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

‎examples/grammar/CMakeLists.txt‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
set(TARGET grammar)
22
add_library(${TARGET} SHARED grammar.cpp)
3-
set_target_properties(${TARGET} PROPERTIESPOSITION_INDEPENDENT_CODEON)
3+
4+
# Ensuring that the rpath is strictly set to $ORIGIN
5+
set_target_properties(${TARGET} PROPERTIES
6+
POSITION_INDEPENDENT_CODEON
7+
BUILD_WITH_INSTALL_RPATHTRUE
8+
INSTALL_RPATH"$ORIGIN"
9+
)
10+
411
target_link_libraries(${TARGET}PRIVATE common llama${CMAKE_THREAD_LIBS_INIT})
5-
target_compile_definitions(${TARGET}PRIVATE LLAMA_SHARED LLAMA_BUILD)
12+
target_compile_definitions(${TARGET}PRIVATE LLAMA_SHARED LLAMA_BUILD)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp