[mlpack-git] master: Compress if statement. (3f01d81)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Aug 6 20:26:08 EDT 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/4c63ae5d7da895fca6d523617bf0691cf7487cf4...3f01d812e9489e1ef2adb938426b2d7ca689766e
>---------------------------------------------------------------
commit 3f01d812e9489e1ef2adb938426b2d7ca689766e
Author: Ryan Curtin <ryan at ratml.org>
Date: Thu Aug 6 20:25:51 2015 -0400
Compress if statement.
>---------------------------------------------------------------
3f01d812e9489e1ef2adb938426b2d7ca689766e
CMake/CXX11.cmake | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/CMake/CXX11.cmake b/CMake/CXX11.cmake
index 8157421..bd64158 100644
--- a/CMake/CXX11.cmake
+++ b/CMake/CXX11.cmake
@@ -39,10 +39,10 @@ endmacro()
# Sets the appropriate flag to enable C++11 support
macro(enable_cxx11)
- if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
- elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
- endif()
+ if(CMAKE_COMPILER_IS_GNUCXX OR
+ CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR
+ CMAKE_CXX_COMPILER_ID STREQUAL "Intel")
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
+ endif()
endmacro()
More information about the mlpack-git
mailing list