Skip to content

Commit 88c20b4

Browse files
committed
Solve issue on linux.
1 parent e955b54 commit 88c20b4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

source/loaders/rb_loader/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ if(NOT Ruby_FOUND)
1515
endif()
1616

1717
# TODO: Search Ruby_LIBRARY_NAME_PATH like in Python?
18-
set(Ruby_LIBRARY_NAME_PATH "${Ruby_LIBRARY_NAME}")
18+
if(Ruby_LIBRARY_NAME)
19+
set(Ruby_LIBRARY_NAME_PATH "${Ruby_LIBRARY_NAME}")
20+
else()
21+
set(Ruby_LIBRARY_NAME_PATH "${Ruby_LIBRARY}")
22+
endif()
1923
get_filename_component(Ruby_LIBRARY_NAME "${Ruby_LIBRARY_NAME_PATH}" NAME)
2024

2125
# Copy Ruby DLL into project output directory

0 commit comments

Comments
 (0)