Skip to content

Commit 9f4a751

Browse files
committed
build: Remove redundant linking
1 parent 5004e78 commit 9f4a751

File tree

4 files changed

+1
-15
lines changed

4 files changed

+1
-15
lines changed

src/loader/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
142142
endif()
143143

144144
set_target_properties(openxr_loader PROPERTIES SOVERSION "${MAJOR}" VERSION "${MAJOR}.${MINOR}.${PATCH}")
145-
target_link_libraries(
146-
openxr_loader
147-
PUBLIC m
148-
)
149145

150146
add_custom_target(
151147
libopenxr_loader.so.${MAJOR}.${MINOR} ALL

src/tests/hello_xr/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,8 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
8181
if(NOT D3D_DIRECTXCOLORS_INCLUDE_DIR)
8282
target_compile_definitions(hello_xr PRIVATE -DMISSING_DIRECTX_COLORS)
8383
endif()
84-
if(OPENGL_FOUND)
85-
target_link_libraries(hello_xr ${OPENGL_gl_LIBRARY})
86-
endif()
8784
elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
8885
target_compile_options(hello_xr PRIVATE -Wall)
89-
target_link_libraries(hello_xr m pthread)
9086
endif()
9187

9288
if(Vulkan_LIBRARY)

src/tests/list/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ endif()
4242

4343
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
4444
target_compile_options(runtime_list PRIVATE -Wall)
45-
target_link_libraries(runtime_list pthread)
4645
endif()
4746

4847
set_target_properties(runtime_list PROPERTIES FOLDER ${TESTS_FOLDER})

src/tests/loader_test/CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ add_executable(loader_test
2323
)
2424
openxr_add_filesystem_utils(loader_test)
2525
set_target_properties(loader_test PROPERTIES FOLDER ${TESTS_FOLDER})
26-
target_link_libraries(loader_test PRIVATE openxr_loader ${CMAKE_THREAD_LIBS_INIT})
26+
target_link_libraries(loader_test PRIVATE openxr_loader)
2727

2828
add_dependencies(loader_test generate_openxr_header)
2929
if(TARGET openxr-gfxwrapper)
@@ -48,9 +48,6 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
4848
target_compile_definitions(loader_test PRIVATE _CRT_SECURE_NO_WARNINGS)
4949
target_compile_options(loader_test PRIVATE /Zc:wchar_t /Zc:forScope /W4 /WX)
5050
endif()
51-
if(OPENGL_FOUND)
52-
target_link_libraries(loader_test PRIVATE ${OPENGL_LIBRARIES})
53-
endif()
5451
if(D3D_D3D11_FOUND)
5552
target_link_libraries(loader_test PRIVATE ${D3D_D3D11_LIBRARY})
5653
endif()
@@ -59,8 +56,6 @@ elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
5956
target_compile_options(
6057
loader_test PRIVATE -Wall -Wno-unused-function -Wno-format-truncation
6158
)
62-
63-
target_link_libraries(loader_test PRIVATE m)
6459
else()
6560
message(FATAL_ERROR "Unsupported Platform")
6661
endif()

0 commit comments

Comments
 (0)