Skip to content

Commit 2083441

Browse files
committed
build: Use keyword syntax for linking.
Needed for upcoming change.
1 parent f064aa4 commit 2083441

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/loader/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
140140
endif()
141141

142142
set_target_properties(openxr_loader PROPERTIES SOVERSION "${MAJOR}" VERSION "${MAJOR}.${MINOR}.${PATCH}")
143-
target_link_libraries(openxr_loader -lstdc++fs -ldl -lpthread -lm)
143+
target_link_libraries(openxr_loader PRIVATE stdc++fs PUBLIC dl pthread m)
144144

145145
add_custom_target(libopenxr_loader.so.${MAJOR}.${MINOR} ALL
146146
COMMAND ${CMAKE_COMMAND} -E create_symlink libopenxr_loader.so.${MAJOR}.${MINOR}.${PATCH} libopenxr_loader.so.${MAJOR}.${MINOR})

0 commit comments

Comments
 (0)