Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
3cce5ee1
Commit
3cce5ee1
authored
Sep 10, 2017
by
Nikita Titov
Committed by
Guolin Ke
Sep 10, 2017
Browse files
fixed build with MinGW (#899)
parent
9eab7ec8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
CMakeLists.txt
CMakeLists.txt
+4
-0
No files found.
CMakeLists.txt
View file @
3cce5ee1
...
@@ -70,6 +70,10 @@ if(UNIX OR MINGW OR CYGWIN)
...
@@ -70,6 +70,10 @@ if(UNIX OR MINGW OR CYGWIN)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++11 -pthread -O3 -Wextra -Wall -Wno-ignored-attributes -Wno-unknown-pragmas"
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++11 -pthread -O3 -Wextra -Wall -Wno-ignored-attributes -Wno-unknown-pragmas"
)
endif
()
endif
()
if
(
WIN32 AND MINGW
)
SET
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-static-libstdc++"
)
endif
()
if
(
MSVC
)
if
(
MSVC
)
if
(
MSVC_VERSION LESS 1800
)
if
(
MSVC_VERSION LESS 1800
)
message
(
STATUS
"The compiler
${
CMAKE_CXX_COMPILER
}
has no C++11 support. Please use a newer msvc."
)
message
(
STATUS
"The compiler
${
CMAKE_CXX_COMPILER
}
has no C++11 support. Please use a newer msvc."
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment