Commit 9f383cf9 by Georgios Bitzes

CMAKE: Don't install gtest to system paths on 'make install'

This could cause trouble when building eos with special flags,
ie ASan instrumentation. The ASan-enabled gtest would get installed
to system paths, stay there and get picked up by later eos builds
compiled with different flags (ie no ASan), producing linker errors.
parent 0c0f4cd3
Pipeline #178126 passed with stages
in 55 minutes 26 seconds
......@@ -103,7 +103,7 @@ if(NOT PACKAGEONLY)
GIT_TAG master
${UPDATE_DISCONNECTED_IF_AVAILABLE})
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR})
add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR} EXCLUDE_FROM_ALL)
else()
find_package(CPPUnit)
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment