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
gaoqiong
composable_kernel_ROCM
Commits
bb819abc
Commit
bb819abc
authored
Dec 05, 2023
by
Artur Wojcik
Browse files
a few more changes
parent
e276fc95
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
15 deletions
+23
-15
CMakeLists.txt
CMakeLists.txt
+1
-1
cmake/getopt.cmake
cmake/getopt.cmake
+0
-0
cmake/gtest.cmake
cmake/gtest.cmake
+22
-14
No files found.
CMakeLists.txt
View file @
bb819abc
cmake/
G
et
O
pt.cmake
→
cmake/
g
et
o
pt.cmake
View file @
bb819abc
File moved
cmake/
GT
est.cmake
→
cmake/
gt
est.cmake
View file @
bb819abc
# SPDX-License-Identifier: MIT
# Copyright (c) 2018-2023, Advanced Micro Devices, Inc. All rights reserved.
include
(
FetchContent
)
set
(
GOOGLETEST_DIR
""
CACHE STRING
"Location of local GoogleTest repo to build against"
)
...
...
@@ -9,11 +6,8 @@ if(GOOGLETEST_DIR)
set
(
FETCHCONTENT_SOURCE_DIR_GOOGLETEST
${
GOOGLETEST_DIR
}
CACHE STRING
"GoogleTest source directory override"
)
endif
()
set
(
BUILD_GMOCK OFF CACHE INTERNAL
""
)
set
(
INSTALL_GTEST OFF CACHE INTERNAL
""
)
FetchContent_Declare
(
googlet
est
GT
est
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG f8d7d77c06936315286eb55f8de22cd23c188571
SYSTEM
...
...
@@ -23,22 +17,36 @@ if(WIN32)
set
(
gtest_force_shared_crt ON CACHE_INTERNAL
""
)
endif
()
set
(
BUILD_GMOCK OFF CACHE INTERNAL
""
)
set
(
INSTALL_GTEST OFF CACHE INTERNAL
""
)
# Store the current value of BUILD_SHARED_LIBS
set
(
__build_shared_libs
${
BUILD_SHARED_LIBS
}
)
set
(
BUILD_SHARED_LIBS OFF CACHE INTERNAL
""
)
FetchContent_MakeAvailable
(
googlet
est
)
FetchContent_MakeAvailable
(
GT
est
)
# Restore the old value of BUILD_SHARED_LIBS
set
(
BUILD_SHARED_LIBS
${
__build_shared_libs
}
CACHE BOOL
"Type of libraries to build"
FORCE
)
set
(
BUILD_GMOCK OFF CACHE INTERNAL
""
)
set
(
INSTALL_GTEST OFF CACHE INTERNAL
""
)
set
(
GTEST_CXX_FLAGS
-Wno-undef
-Wno-reserved-identifier
-Wno-global-constructors
-Wno-zero-as-null-pointer-constant
-Wno-missing-noreturn
-Wno-disabled-macro-expansion
-Wno-used-but-marked-unused
-Wno-switch-enum
-Wno-float-equal
-Wno-unused-member-function
)
-Wno-zero-as-null-pointer-constant
-Wno-unused-member-function
-Wno-comma
-Wno-old-style-cast
-Wno-deprecated
-Wno-unsafe-buffer-usage
)
if
(
WIN32
)
list
(
APPEND GTEST_CXX_FLAGS
...
...
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