mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 795251 - googletest detection cannot be overridden
For the part about the GTest linking problem.
This commit is contained in:
parent
aa95d61c6c
commit
507ef68dc7
@ -126,7 +126,7 @@ function(gnc_gtest_configure)
|
||||
find_package(Threads REQUIRED)
|
||||
set(GTEST_FOUND YES CACHE INTERNAL "Found GTest")
|
||||
if(GTEST_SHARED_LIB)
|
||||
set(GTEST_LIB "${GTEST_SHARED_LIB};${GTEST_MAIN_LIB}" PARENT_SCOPE)
|
||||
set(GTEST_LIB "${GTEST_MAIN_LIB};${GTEST_SHARED_LIB}" PARENT_SCOPE)
|
||||
unset(GTEST_SRC_DIR CACHE)
|
||||
else()
|
||||
set(GTEST_SRC "${GTEST_SRC_DIR}/src/gtest_main.cc" PARENT_SCOPE)
|
||||
|
Loading…
Reference in New Issue
Block a user