Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

simplifying the build of static or shared libraries #147

Merged
merged 1 commit into from
May 2, 2019

Conversation

caitlinross
Copy link
Member

@caitlinross caitlinross commented May 2, 2019

Simplifying the choice of building static or shared libraries. Cmake provides support for this through the option BUILD_SHARED_LIBS. As long as static or shared isn't specified in add_library, it will build the appropriate type based on the setting. So ROSS now has a ROSS_BUILD_SHARED_LIBS option that defaults to OFF. I prefixed it with ROSS_ because I may need to do some library settings differently in RISA for various reasons, and this will prevent name clashes.


If this merge represents a feature addition to ROSS, the following items must be completed before the branch will be merged:

  • Document the feature on the blog (See the website Contributing guide).
    Include a link to your blog post in the Pull Request.
  • Builds should cleanly compile with -Wall and -Wextra.
  • One or more TravisCI tests should be created (and they should pass)
  • Through the TravisCI tests, coverage should increase
  • Test with CODES to ensure everything continues to work

@caitlinross caitlinross merged commit d25f098 into develop May 2, 2019
@caitlinross caitlinross deleted the cmake-library branch May 2, 2019 21:59
caitlinross added a commit that referenced this pull request May 16, 2019
* ROSS cleanup (#135)

This commit fixes warnings when building with -Wall and -Wextra.  In addition, removes old unused code related to prior pthread versions of ROSS as well as removing the ROSS_MEMORY related code, due to no longer being fully functional.

* fixing warnings when building with Wall, etc

* fixing warnings in buddy.c

* fixing warnings in the rest of ROSS core

* fixing warnings in instrumentation

* fixing warnings with phold

* fixing undefined reference causing linking error

* adding warning flags to Travis builds

* fixing some additional warnings that appear in release builds

* minor changes to travis builds

* removing old, unnecessary pthread related code

* fixing ifdefs for ROSS_MEMORY

* removing tw-memory related stuff for now

* removing some unused stuff and unnecessary function arguments

* lots of documentation for network-mpi and removing some unnecessary stuff

* keeping the ROSS models submodule from being used in Travis tests

* minor fix for C++ Travis build

* adding installing phold to bin

* adding some RPATH commands to CMakeLists.txt for Spack

* removed ROSS-Models and template model submodule

* update readme for submodule details

* rpath in pkg-config

* adding develop branch to Travis safelist

* simplifying the build of static or shared libraries (#147)

* Update to the way the build process grabs version number (#148)

* updating the way the version number is grabbed, so we can have the actual version and not the git commit

* fixing an error that caused coveralls to fail

* updating README and removing out-of-date README-vis (current info is on webpage)

* few more updates to README

* changing damaris submodule/directory to risa

* see if gcov and clang versions match (#150)

* see if gcov and clang versions match

* maybe we should be using lcov... since we apt-get it

* whitespace

* what version is llvm-cov?

* use llvm-cov

* llvm-cov gcov

* remove cov version checks

* removing ROSS_obj from Cmake build - no longer necessary with single library creation

* removing some files that are actually unnecessary for version numbers as well as having ROSS output both version number and commit, instead of just version
@gonsie gonsie mentioned this pull request Dec 2, 2019
gonsie added a commit that referenced this pull request Dec 2, 2019
Merge release-7.2.0:

* New default clock: get-time-of-day (#170)
* STime API (#159)
* Add ARMv7l arch support to ROSS (#155)
* Fix to generate covage stats (#150)
* changing damaris submodule/directory to risa
* Updated README
* Update to the way the build process grabs version number (#148)
* simplifying the build of static or shared libraries (#147)
* ROSS cleanup: -Wall, -Wextra, and more (#135)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant