Template
Revert googletest.cmake
Continue to use FetchContent for google test stuff. CPM seems to be doing something which stops it from compiling on Ubuntu with LLVM
This commit is contained in:
1 parent
d678ed9e18
commit
b684c077f6
2 files changed
+8
-10
No files matched your search
@@ -1,15 +1,14 @@
|
|||||||
include_guard()
|
include_guard()
|
||||||
|
|
||||||
CPMAddPackage(
|
include(FetchContent)
|
||||||
NAME googletest
|
FetchContent_Declare(
|
||||||
GITHUB_REPOSITORY google/googletest
|
googletest
|
||||||
GIT_TAG v1.13.0
|
GIT_REPOSITORY https://github.com/google/googletest.git
|
||||||
VERSION 1.13.0
|
GIT_TAG 58d77fa8070e8cec2dc1ed015d66b454c8d78850 # release-1.12.1
|
||||||
OPTIONS
|
|
||||||
"INSTALL_GTEST OFF"
|
|
||||||
"gtest_force_shared_crt ON"
|
|
||||||
)
|
)
|
||||||
|
# For Windows: Prevent overriding the parent project's compiler/linker settings
|
||||||
|
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
|
||||||
|
FetchContent_MakeAvailable(googletest)
|
||||||
set_property(TARGET
|
set_property(TARGET
|
||||||
gtest
|
gtest
|
||||||
gtest_main
|
gtest_main
|
||||||
|
|||||||
@@ -3,6 +3,5 @@
|
|||||||
auto main() -> int
|
auto main() -> int
|
||||||
{
|
{
|
||||||
fmt::print("Hello, World!");
|
fmt::print("Hello, World!");
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user