Skip to content

Commit

Permalink
Allow building shared libraries when requested
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
carlocab committed Jul 3, 2024
1 parent fe5fe5a commit 9c113dc
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 9c113dc

Please sign in to comment.