mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
Add CMake messages about Googletest link / compilation
This commit is contained in:
parent
eadd166d75
commit
9108bbb60f
@ -337,8 +337,10 @@ if (SQLITECPP_BUILD_TESTS)
|
|||||||
|
|
||||||
find_package(GTest)
|
find_package(GTest)
|
||||||
if (GTEST_FOUND)
|
if (GTEST_FOUND)
|
||||||
|
message(STATUS "Link to GTest system library")
|
||||||
target_link_libraries(SQLiteCpp_tests GTest::GTest GTest::Main SQLiteCpp sqlite3)
|
target_link_libraries(SQLiteCpp_tests GTest::GTest GTest::Main SQLiteCpp sqlite3)
|
||||||
else (GTEST_FOUND)
|
else (GTEST_FOUND)
|
||||||
|
message(STATUS "Compile googletest from source in submodule")
|
||||||
# deactivate some warnings for compiling the googletest library
|
# deactivate some warnings for compiling the googletest library
|
||||||
if (NOT MSVC)
|
if (NOT MSVC)
|
||||||
add_compile_options(-Wno-switch-enum)
|
add_compile_options(-Wno-switch-enum)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user