Skip to content

Commit

Permalink
Allow building shared libraries when requested (#20)
Browse files Browse the repository at this point in the history
Summary:
CMake builds static libraries by default unless requested otherwise with
`BUILD_SHARED_LIBS`. However, this is made impossible when you pass
`STATIC` to `add_library`.

Passing `STATIC` isn't really necessary, and can be a hinderance for
downstream users. See, for example, facebook/mvfst#302.

Pull Request resolved: #20

Reviewed By: kavehahmadi60

Differential Revision: D59240807

Pulled By: genevievehelsel

fbshipit-source-id: 0ab62d3d786fd444b7ecbd33141895253023f1c3
  • Loading branch information
carlocab authored and facebook-github-bot committed Aug 8, 2024
1 parent 9516594 commit e052d5f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion eden/common/testharness/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ file(GLOB testharness_sources CONFIGURE_DEPENDS *.cpp)

add_library(
edencommon_testharness
STATIC
${testharness_headers}
${testharness_sources}
)
Expand Down
1 change: 0 additions & 1 deletion eden/common/utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ endif()

add_library(
edencommon_utils
STATIC
${utils_headers}
${utils_sources})

Expand Down

0 comments on commit e052d5f

Please sign in to comment.