Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1d9d9a6

Browse files
committedMar 31, 2021
Fix cmake warning due to incorrect case in find_package
Fixes this warning message: ``` CMake Warning (dev) at /usr/local/Cellar/cmake/3.19.6/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:426 (message): The package name passed to `find_package_handle_standard_args` (Gtest) does not match the name of the calling package (GTest). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. ```
1 parent a81ba97 commit 1d9d9a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ include(CPack)
103103
if(NOT CMAKE_CROSSCOMPILING)
104104
list(APPEND CMAKE_CTEST_ARGUMENTS "--output-on-failure")
105105
enable_testing()
106-
include(FindGTest)
107-
find_package(GTest REQUIRED)
106+
include(FindGtest)
107+
find_package(Gtest REQUIRED)
108108
include_directories(${GTEST_INCLUDE_DIRS})
109109
add_subdirectory(src/test)
110110
endif()

‎FindGTest.cmake ‎FindGtest.cmake

File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.