forked from ceres-solver/ceres-solver
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move C++11 checks to after external find_package() calls.
- Testing for C++11, and subsequent testing for components using C++11 requires adding -std=c++11 to CMAKE_REQUIRED_FLAGS used by the check_cxx_source_compiles() (and similar) macros if required by the compiler. - This variable is also used for the C equivalent macros, which are used by find_package(BLAS), and would cause the detection to fail if present. - Thus if CXX11 was forced ON via -D (not via the GUI) then detection would fail (with the GUI an initial configure without CXX11 would initialise the variables and no errors would occur in later reconfigures). Change-Id: I08d300baf3730e926fb8e853a384badcceefeaf5
- Loading branch information
Showing
1 changed file
with
81 additions
and
81 deletions.
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