Comments (3)
It is historical -- there are many users here that always want to link with a static exodus library. Instead of building two separate installations, we build both static and shared exodus if shared libs are requested.
There are two different compile objects for the shared and static exodus library. If you watch the build, you will see it doing two separate compilations -- one for the static library and one for the objects in the shared library.
from seacas.
from seacas.
In seacas, it will build both a static and shared version of the exodus library.
Ah, funny. Typically if you're building shared and static versions of a library, you'll also want different compile objects for the object files involved (e.g., -fPIC
and friends). Looking at the CMake code, I see
if (${CMAKE_PROJECT_NAME} STREQUAL "SEACASProj")
# Many users of the SEACAS installations still want a static exodus library...
if (BUILD_SHARED_LIBS)
ADD_LIBRARY(
exodus_static
STATIC
${SOURCES} ${DEP_SOURCES}
)
set_target_properties(exodus_static PROPERTIES OUTPUT_NAME exodus)
INSTALL(TARGETS exodus_static DESTINATION ${CMAKE_INSTALL_PREFIX}/lib)
endif(BUILD_SHARED_LIBS)
# For backwards compatability, the C exodus library was called libexoIIv2c.a
# Create a symbolic link from libexodus.a to libexoIIv2c.a -- do only for static lib
InstallSymLink(libexodus.a ${CMAKE_INSTALL_PREFIX}/lib/libexoIIv2c.a)
endif()
so if BUILD_SHARED_LIBS
, two library versions are built. Not sure if this is the right thing to do. After all, anyone gets static libraries if you don't specify BUILD_SHARED_LIBS
(or set it to FALSE
).
In any case, this is your call. Feel free to close.
from seacas.
Related Issues (20)
- -Wreserved-identifier warnings in public API names HOT 7
- Build error in "Linking CXX executable struc_to_unstruc" HOT 1
- exodus 2023.10.24 and msys2/mingw HOT 3
- Need Curl under Windows 10's WSL HOT 2
- Nem_spread should have option to set single-file-read from command line
- Grepos subsetting corrupts sideset variable data
- How to instantiate a transform? HOT 7
- Publish packaged exodus python bindings to PyPI HOT 2
- testwt-assembly.c: Error c2057 when building with MSVC and NetCDF binaries are found HOT 3
- Improve epu variable inclusion/exclusion handling.
- Verify that properties passed to IOSS are used.
- Add option to EPU to delete the file-per-rank files after joining successfully
- io_modify geometry modification does not work with CGNS structured HOT 1
- installation issue: not creating lib and include folder with ./install-tpl.sh HOT 11
- Aprepro Robustness
- Python bindings include absolute path to build directory. HOT 1
- ex_close fails if file is mode is EX_READ or EX_CLOBBER in parallel HOT 7
- EPU: Add capability to select "last 3 steps" HOT 1
- [MSVC][c++20][c++latest] Ioss_DatabaseIO.C failed with error 7525: call to immediate function is not a constant expression HOT 4
- [URGENT] Exonull does not compile with SEACAS_HAVE_MPI ON on Windows HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seacas.