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
b74528f3
Unverified
Commit
b74528f3
authored
Dec 28, 2023
by
James Lamb
Committed by
GitHub
Dec 28, 2023
Browse files
[ci] upgrade to GoogleTest v1.14.0 (fixes #5976) (#5981)
parent
4588d648
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
CMakeLists.txt
CMakeLists.txt
+9
-2
No files found.
CMakeLists.txt
View file @
b74528f3
...
...
@@ -41,6 +41,13 @@ endif()
project
(
lightgbm LANGUAGES C CXX
)
if
(
BUILD_CPP_TEST
)
set
(
CMAKE_CXX_STANDARD 14
)
else
()
set
(
CMAKE_CXX_STANDARD 11
)
endif
()
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
list
(
APPEND CMAKE_MODULE_PATH
"
${
PROJECT_SOURCE_DIR
}
/cmake/modules"
)
#-- Sanitizer
...
...
@@ -329,7 +336,7 @@ endif()
if
(
UNIX OR MINGW OR CYGWIN
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++11
-pthread -Wextra -Wall -Wno-ignored-attributes -Wno-unknown-pragmas -Wno-return-type"
"
${
CMAKE_CXX_FLAGS
}
-pthread -Wextra -Wall -Wno-ignored-attributes -Wno-unknown-pragmas -Wno-return-type"
)
if
(
MINGW
)
# ignore this warning: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95353
...
...
@@ -630,7 +637,7 @@ if(BUILD_CPP_TEST)
FetchContent_Declare
(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG
release-
1.1
1
.0
GIT_TAG
v
1.1
4
.0
)
FetchContent_MakeAvailable
(
googletest
)
add_library
(
GTest::GTest ALIAS gtest
)
...
...
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