mirror of
https://github.com/OpenAMP/open-amp.git
synced 2026-08-20 21:40:41 +08:00
cmake: fix LIBMETAL naming warning
Fix warnings spotted by cmake: The package name passed to `find_package_handle_standard_args`(LIBMETAL) does not match the name of the calling package(Libmetal). This can lead to problems in calling code that expects `find_package` result variables (e.g., `_FOUND`) to follow a certain pattern. Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@st.com>
This commit is contained in:
@@ -22,7 +22,7 @@ get_filename_component(LIBMETAL_LIB_DIR ${LIBMETAL_LIB} DIRECTORY)
|
||||
# handle the QUIETLY and REQUIRED arguments and set HUGETLBFS_FOUND to TRUE if
|
||||
# all listed variables are TRUE
|
||||
include (FindPackageHandleStandardArgs)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS (LIBMETAL DEFAULT_MSG LIBMETAL_LIB LIBMETAL_INCLUDE_DIR)
|
||||
FIND_PACKAGE_HANDLE_STANDARD_ARGS (Libmetal DEFAULT_MSG LIBMETAL_LIB LIBMETAL_INCLUDE_DIR)
|
||||
|
||||
if (LIBMETAL_FOUND)
|
||||
set (LIBMETAL_LIBS ${LIBMETAL_LIB})
|
||||
|
||||
Reference in New Issue
Block a user