File tree Expand file tree Collapse file tree 4 files changed +1
-15
lines changed Expand file tree Collapse file tree 4 files changed +1
-15
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ()
8784elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
8885 target_compile_options (hello_xr PRIVATE -Wall)
89- target_link_libraries (hello_xr m pthread)
9086endif ()
9187
9288if (Vulkan_LIBRARY)
Original file line number Diff line number Diff line change @@ -42,7 +42,6 @@ endif()
4242
4343if (CMAKE_SYSTEM_NAME STREQUAL "Linux" )
4444 target_compile_options (runtime_list PRIVATE -Wall)
45- target_link_libraries (runtime_list pthread)
4645endif ()
4746
4847set_target_properties (runtime_list PROPERTIES FOLDER ${TESTS_FOLDER} )
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ add_executable(loader_test
2323)
2424openxr_add_filesystem_utils(loader_test)
2525set_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
2828add_dependencies (loader_test generate_openxr_header)
2929if (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)
6459else ()
6560 message (FATAL_ERROR "Unsupported Platform" )
6661endif ()
You can’t perform that action at this time.
0 commit comments