Skip to content

Commit

Permalink
build(cmake): Add path match messages for gtest dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
ditsuke committed Aug 27, 2023
1 parent 60e7202 commit 2a25d50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ else ()
endif ()
if (NOT DEFINED GTEST_INCLUDE_DIR)
message(FATAL_ERROR "Could not find headers for gtest!")
else()
message(STATUS "gtest include directory: ${GTEST_INCLUDE_DIR}")
endif ()

if ((EXISTS "${GTEST_ROOT}/lib/libgtest_main.a"
Expand All @@ -54,6 +56,8 @@ else ()
endif ()
if (NOT DEFINED GTEST_LIBRARY_DIR)
message(FATAL_ERROR "Could not find library for gtest!")
else()
message(STATUS "gtest library directory: ${GTEST_LIBRARY_DIR}")
endif ()

message(STATUS "googletest root directory: ${GTEST_ROOT}")
Expand Down

0 comments on commit 2a25d50

Please sign in to comment.