Skip to content

Commit

Permalink
CMake: remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed May 24, 2024
1 parent d7098e7 commit f938f5e
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -870,11 +870,6 @@ function(ff_lib_enable VARNAME PKGCONFIG_NAMES CMAKE_NAME)
endforeach()
endfunction()

if(BINARY_LINK_TYPE STREQUAL "static")
set_target_properties(libfastfetch PROPERTIES LINK_SEARCH_START_STATIC 1)
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
endif()

ff_lib_enable(VULKAN
"vulkan"
"Vulkan"
Expand Down Expand Up @@ -1059,10 +1054,6 @@ target_link_libraries(libfastfetch
PRIVATE ${CMAKE_DL_LIBS}
)

if(BINARY_LINK_TYPE STREQUAL "static")
set_target_properties(libfastfetch PROPERTIES LINK_SEARCH_END_STATIC 1)
endif()

######################
# Executable targets #
######################
Expand Down

0 comments on commit f938f5e

Please sign in to comment.