Skip to content

Commit

Permalink
Merge pull request #885 from rctoris/patch-2
Browse files Browse the repository at this point in the history
[kinetic/lunar] Dynamically check gtest library type
  • Loading branch information
dirk-thomas authored Aug 15, 2017
2 parents 03ef0e1 + 18e1eec commit b05cd26
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/test/gtest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ if(NOT GTEST_FOUND)
endif()
else()
message(STATUS "Found gtest: gtests will be built")
add_library(gtest SHARED IMPORTED)
add_library(gtest UNKNOWN IMPORTED)
set_target_properties(gtest PROPERTIES IMPORTED_LOCATION "${GTEST_LIBRARIES}")
add_library(gtest_main SHARED IMPORTED)
add_library(gtest_main UNKNOWN IMPORTED)
set_target_properties(gtest_main PROPERTIES IMPORTED_LOCATION "${GTEST_MAIN_LIBRARIES}")
set(GTEST_FOUND ${GTEST_FOUND} CACHE INTERNAL "")
set(GTEST_INCLUDE_DIRS ${GTEST_INCLUDE_DIRS} CACHE INTERNAL "")
Expand Down

0 comments on commit b05cd26

Please sign in to comment.