summaryrefslogtreecommitdiff
path: root/indra/cmake
diff options
context:
space:
mode:
authorprep <prep@lindenlab.com>2011-02-17 13:02:04 -0500
committerprep <prep@lindenlab.com>2011-02-17 13:02:04 -0500
commit5c2f5b0013e7a0dad8b92e9714895fdb60398611 (patch)
treecde4feb8e7dc3f7ae967b959c37e077811ee428f /indra/cmake
parent800e93110462e1d6b91c09f1efe3164733006fc6 (diff)
parentb1e39f8544493ea02145f94552eb433eaa667d48 (diff)
merge
Diffstat (limited to 'indra/cmake')
-rw-r--r--indra/cmake/GoogleMock.cmake5
-rw-r--r--indra/cmake/LLAddBuildTest.cmake5
2 files changed, 3 insertions, 7 deletions
diff --git a/indra/cmake/GoogleMock.cmake b/indra/cmake/GoogleMock.cmake
index ca5a8034ba..06d6d847a0 100644
--- a/indra/cmake/GoogleMock.cmake
+++ b/indra/cmake/GoogleMock.cmake
@@ -8,9 +8,10 @@ set(GOOGLEMOCK_INCLUDE_DIRS
${LIBS_PREBUILT_DIR}/include)
if (LINUX)
+ # VWR-24366: gmock is underlinked, it needs gtest.
set(GOOGLEMOCK_LIBRARIES
- gmock
- gtest)
+ gmock -Wl,--no-as-needed
+ gtest -Wl,--as-needed)
elseif(WINDOWS)
set(GOOGLEMOCK_LIBRARIES
gmock)
diff --git a/indra/cmake/LLAddBuildTest.cmake b/indra/cmake/LLAddBuildTest.cmake
index 05f0492234..cd0eada2d0 100644
--- a/indra/cmake/LLAddBuildTest.cmake
+++ b/indra/cmake/LLAddBuildTest.cmake
@@ -57,11 +57,6 @@ INCLUDE(GoogleMock)
${CMAKE_SOURCE_DIR}/test/test.h
)
- # Use the default flags
- if (LINUX)
- SET(CMAKE_EXE_LINKER_FLAGS "")
- endif (LINUX)
-
# start the source test executable definitions
SET(${project}_TEST_OUTPUT "")
FOREACH (source ${sources})