-
Notifications
You must be signed in to change notification settings - Fork 45
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
Switch over fully to modern CMake targets and updates for testing against Trilinos (#299) #479
Merged
Merged
Changes from 7 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
21c919f
Fix some typos in comments
bartlettroscoe a99bf60
Fix the comment line for a test block
bartlettroscoe d9646f0
Standardize comments (#299)
bartlettroscoe a7c2282
Add "" initializers for several vars (#299)
bartlettroscoe e8bb3d7
Snapshot FindTPLNetcdf.cmake from Trilinos 8c1028df724 with small mod…
bartlettroscoe bed095e
Switch to relying on TRIBITS_TESTONLY_LIB property only (#299)
bartlettroscoe ca3f5e3
Switch to linking against <Package>::all_libs (#299)
bartlettroscoe 969abad
WIP: Comment out old TriBITS manual manipulation of includes and libs…
bartlettroscoe 2e51918
Factor out new module TribitsConfigureFile.cmake (#63, #299)
bartlettroscoe 31fbaea
WIP: Remove old TriBITS manual manipulation of includes and libs (#299)
bartlettroscoe ed1597c
Factor out TribitsAddLibrary.cmake for tribits_add_library() (#299)
bartlettroscoe 5011e8b
tribits_add_library(): Factor out functions and some cleanup (#299)
bartlettroscoe 81f7f44
Add test for ADD_DIR_TO_NAME (#299)
bartlettroscoe f4752b3
Rename local var to test tribits_create_name_from_current_source_dire…
bartlettroscoe d7a81de
Fix return arg in tribits_create_name_from_current_source_directory()…
bartlettroscoe 24a2a8e
tribits_add_executable(): Factor out functions and cleanup (#299)
bartlettroscoe dcb616f
Remove comments about being hard to maintain (#299)
bartlettroscoe cb6bdbd
Remove all obsolete doc references to include dirs and lib dirs (#299)
bartlettroscoe d430376
TribitsExampleProject2: Remove hacked dependencies on indirect TPLs (…
bartlettroscoe 7ef19a1
Update changelog for final switch to modern CMake targets (#299)
bartlettroscoe 6ddc67a
Add changelog note about no longer setting dir property INCLUDE_DIREC…
bartlettroscoe a9cdb79
Add changelog note for setting <Package>_ENABLE_<depPkg> for required…
bartlettroscoe b1895f7
Handle <Project>_EXTRA_LINK_FLAGS as extra TPL that everything depend…
bartlettroscoe a168af1
Add back include_guard(GLOBAL) (#299)
bartlettroscoe 618284a
WIP: Set <Project>_INCLUDE_DIRS in <Project>Config.cmake for the inst…
bartlettroscoe ebe89e3
Add test for TribitsExampleApp with MPI enabled (#299)
bartlettroscoe e2dbc66
WIP: Make SimpleCxx package dependent on MPI (#299)
bartlettroscoe a831472
Fix tests for adding MPI to SimpleCxx and adding back install include…
bartlettroscoe 4051847
WIP: Add test to expose defect with MPI::all_libs (#299)
bartlettroscoe 9206994
Have TPL MPI produce MPI::all_libs and MPIConfig.cmake (#299)
bartlettroscoe 700f916
Remove worthless `if (TARGET <Pkg>::all_libs)` checks (#299)
bartlettroscoe 4a2ecc0
Merge remote-tracking branch 'github/master' into 299-switch-to-moder…
bartlettroscoe f240850
Exclude MPI tests when MPI not available (#299)
bartlettroscoe 4758901
Only link to <Package>_TEST_ENABLED_DEPENDENCIES for TESTONLY libs (#…
bartlettroscoe 21d3c4b
Fuse foreach() loops for LIB and TEST dependencies (#299)
bartlettroscoe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# @HEADER | ||
# ************************************************************************ | ||
# | ||
# TriBITS: Tribal Build, Integrate, and Test System | ||
# Copyright 2013 Sandia Corporation | ||
# | ||
# Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, | ||
# the U.S. Government retains certain rights in this software. | ||
# | ||
# Redistribution and use in source and binary forms, with or without | ||
# modification, are permitted provided that the following conditions are | ||
# met: | ||
# | ||
# 1. Redistributions of source code must retain the above copyright | ||
# notice, this list of conditions and the following disclaimer. | ||
# | ||
# 2. Redistributions in binary form must reproduce the above copyright | ||
# notice, this list of conditions and the following disclaimer in the | ||
# documentation and/or other materials provided with the distribution. | ||
# | ||
# 3. Neither the name of the Corporation nor the names of the | ||
# contributors may be used to endorse or promote products derived from | ||
# this software without specific prior written permission. | ||
# | ||
# THIS SOFTWARE IS PROVIDED BY SANDIA CORPORATION "AS IS" AND ANY | ||
# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL SANDIA CORPORATION OR THE | ||
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, | ||
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
# | ||
# ************************************************************************ | ||
# @HEADER | ||
|
||
include_guard() | ||
|
||
|
||
# @FUNCTION: tribits_set_lib_is_testonly() | ||
# | ||
# See if a library is a TESTONLY library | ||
# | ||
# Usage:: | ||
# | ||
# tribits_set_lib_is_testonly(<libName>) | ||
# | ||
# This sets the ``TRIBITS_TESTONLY_LIB`` on the library target ``<libName>``. | ||
# | ||
function(tribits_set_lib_is_testonly libName) | ||
set_target_properties(${libName} PROPERTIES TRIBITS_TESTONLY_LIB TRUE) | ||
endfunction() | ||
|
||
|
||
# @FUNCTION: tribits_lib_is_testonly() | ||
# | ||
# See if a library is a TESTONLY library | ||
# | ||
# Usage:: | ||
# | ||
# tribits_lib_is_testonly(<libName> <libIsTestOnlyOut>) | ||
# | ||
# This will only return ``TRUE`` in `` <libIsTestOnlyOut>`` if ``<libName>`` | ||
# is a target and the target property ``TRIBITS_TESTONLY_LIB`` is set to | ||
# ``TRUE``. | ||
# | ||
function(tribits_lib_is_testonly libName libIsTestOnlyOut) | ||
if (TARGET ${libName}) | ||
get_target_property(libIsTestOnly ${libName} TRIBITS_TESTONLY_LIB) | ||
else() | ||
set(libIsTestOnly FALSE) | ||
endif() | ||
set(${libIsTestOnlyOut} ${libIsTestOnly} PARENT_SCOPE) | ||
endfunction() |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see a lot of instances where you have the exact same logic for two different lists. You can combine both lists in
foreach(IN LISTS)
. For example:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is a good point. Please flag other instances you see like this