Skip to content

Commit

Permalink
Mention how to skip setting C++11 flags but enable C++11
Browse files Browse the repository at this point in the history
This is an important use case for trilinos/Trilinos#1400.
  • Loading branch information
bartlettroscoe committed Dec 1, 2017
1 parent 1fd597c commit 24d3975
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tribits/doc/build_ref/TribitsBuildReferenceBody.rst
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,15 @@ cache variable::

-D <Project>_CXX11_FLAGS="<compiler flags>"

In order to enable C++11 but not have the default system set any flags for
C++11, use::

-D <Project>_ENABLE_CXX11=ON
-D <Project>_CXX11_FLAGS=" "

The empty space " " will result in the system assuming that no flags needs to
be set.


Enabling explicit template instantiation for C++
------------------------------------------------
Expand Down

0 comments on commit 24d3975

Please sign in to comment.