maxflow icon indicating copy to clipboard operation
maxflow copied to clipboard

Modified CMakeLists to support building shared or static libraries

Open johnmarianhoffman opened this issue 5 years ago • 1 comments

I have modified CMakeLists.txt to support the standard CMake build option BUILD_SHARED_LIBS=ON/OFF.

This allows the user to select desired library type via a standard method at configuration time (needed if static linking libmaxflow to a project). There is not currently a convenient way to set this without manually changing line 59 in CMakeLists.txt from SHARED to STATIC.

This change does not affect the default behavior of the package.

johnmarianhoffman avatar Jun 18 '20 18:06 johnmarianhoffman

Is there a chance this can be merged? I'd rather not have to pull changes from a PR and have the latest changes be reflected on the main branch.

rayryeng avatar Dec 21 '24 00:12 rayryeng