Skip to content

Commit

Permalink
missing CMAKE_LINK_SEARCH_START_STATIC added in cmake 3.4 was likely …
Browse files Browse the repository at this point in the history
…breaking static builds
  • Loading branch information
milot-mirdita committed Jan 5, 2025
1 parent 658b2b7 commit 7363041
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ set(FORCE_STATIC_DEPS 0 CACHE BOOL "Force static linking of deps")
if (FORCE_STATIC_DEPS)
set(CMAKE_FIND_LIBRARY_SUFFIXES .a CACHE INTERNAL "" FORCE)
set(BUILD_SHARED_LIBS OFF CACHE INTERNAL "" FORCE)
set(CMAKE_LINK_SEARCH_START_STATIC ON CACHE INTERNAL "" FORCE)
endif ()

if (NOT XCODE AND NOT MSVC AND NOT CMAKE_BUILD_TYPE)
Expand Down

0 comments on commit 7363041

Please sign in to comment.