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,15 +1,14 @@
|
||||
include_guard()
|
||||
|
||||
CPMAddPackage(
|
||||
NAME googletest
|
||||
GITHUB_REPOSITORY google/googletest
|
||||
GIT_TAG v1.13.0
|
||||
VERSION 1.13.0
|
||||
OPTIONS
|
||||
"INSTALL_GTEST OFF"
|
||||
"gtest_force_shared_crt ON"
|
||||
include(FetchContent)
|
||||
FetchContent_Declare(
|
||||
googletest
|
||||
GIT_REPOSITORY https://github.com/google/googletest.git
|
||||
GIT_TAG 58d77fa8070e8cec2dc1ed015d66b454c8d78850 # release-1.12.1
|
||||
)
|
||||
|
||||
# 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
|
||||
gtest
|
||||
gtest_main
|
||||
|
||||
@@ -3,6 +3,5 @@
|
||||
auto main() -> int
|
||||
{
|
||||
fmt::print("Hello, World!");
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user