Skip to content

Commit 97890ee

Browse files
authored
Docs: Recommend Static Build for Superbuilds (openPMD#1325)
Better default to recommend.
1 parent 78baa4c commit 97890ee

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,8 +333,9 @@ set(CMAKE_POLICY_DEFAULT_CMP0077 NEW)
333333
set(openPMD_BUILD_CLI_TOOLS OFF)
334334
set(openPMD_BUILD_EXAMPLES OFF)
335335
set(openPMD_BUILD_TESTING OFF)
336-
# set(openPMD_BUILD_SHARED_LIBS OFF) # precedence over BUILD_SHARED_LIBS if needed; or:
337-
set(openPMD_INSTALL ${BUILD_SHARED_LIBS}) # only install if used as shared a library
336+
set(openPMD_BUILD_SHARED_LIBS OFF) # precedence over BUILD_SHARED_LIBS if needed
337+
set(openPMD_INSTALL OFF) # or instead use:
338+
# set(openPMD_INSTALL ${BUILD_SHARED_LIBS}) # only install if used as a shared library
338339
set(openPMD_USE_PYTHON OFF)
339340
FetchContent_Declare(openPMD
340341
GIT_REPOSITORY "https://github.com/openPMD/openPMD-api.git"

0 commit comments

Comments
 (0)