Skip to content

Commit

Permalink
FindGMock.cmake: put GMOCK_LIBRARY as first argument after DEFAULT_MSG
Browse files Browse the repository at this point in the history
Putting GMock as the first argument, make the message better:

    -- Found GMock: /home/user/.../lib/libgmock.a

Instead of:

    -- Found GMock: TRUE

This matches the FindGTest output:

    -- Found GTest: /home/user/.../lib/libgtest.a
  • Loading branch information
Sarcasm committed Nov 8, 2017
1 parent b28cf20 commit 41f2ef8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/modules/FindGMock.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ find_package(GTest)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(GMock DEFAULT_MSG
GMOCK_LIBRARY GMOCK_MAIN_LIBRARY
GMOCK_INCLUDE_DIR
GTEST_FOUND
GMOCK_INCLUDE_DIR GMOCK_LIBRARY GMOCK_MAIN_LIBRARY)
)
mark_as_advanced(GMOCK_INCLUDE_DIR GMOCK_LIBRARY GMOCK_MAIN_LIBRARY)

if (GMOCK_FOUND AND NOT TARGET GMock::GMock)
Expand Down

0 comments on commit 41f2ef8

Please sign in to comment.