[mlpack-git] master: Add compiler option for MSVC. (d3ab34a)
gitdub at mlpack.org
gitdub at mlpack.org
Tue Aug 16 12:00:47 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/0f4b25acd6aaa14294c044874ba6cc0751712baa...0a19d07bd39e6223991976474bc79671ba8aa0f0
>---------------------------------------------------------------
commit d3ab34af505ab6a07d77baafa3ca2d0969626e19
Author: MarcosPividori <marcos.pividori at gmail.com>
Date: Tue Aug 16 13:00:47 2016 -0300
Add compiler option for MSVC.
>---------------------------------------------------------------
d3ab34af505ab6a07d77baafa3ca2d0969626e19
CMakeLists.txt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d89b313..bd53495 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -119,7 +119,9 @@ if(DEBUG)
add_definitions(-DDEBUG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -ftemplate-backtrace-limit=0")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -g -O0")
- endif ()
+ else()
+ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj")
+ endif()
# mlpack uses it's own mlpack::backtrace class based on Binary File Descriptor
# <bfd.h> and linux Dynamic Loader <libdl.h> and more portable version in future
More information about the mlpack-git
mailing list