aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorfuzzard <fuzzard@kodi.tv>2022-02-21 19:08:25 +1000
committerfuzzard <fuzzard@kodi.tv>2022-02-22 18:07:52 +1000
commitee4453e2cc59555055b1b8ecd9d85ab54959da51 (patch)
treef5cfe1f6f67ab0b2e2c6d2736917625c55d040d1 /cmake
parentdd66bdea9d63b624654161a418fef35c9d322c87 (diff)
[cmake] FindFstrcmp update to standard layout
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/FindFstrcmp.cmake13
1 files changed, 7 insertions, 6 deletions
diff --git a/cmake/modules/FindFstrcmp.cmake b/cmake/modules/FindFstrcmp.cmake
index 042b9967cc..616557f862 100644
--- a/cmake/modules/FindFstrcmp.cmake
+++ b/cmake/modules/FindFstrcmp.cmake
@@ -65,12 +65,13 @@ find_package_handle_standard_args(Fstrcmp
if(FSTRCMP_FOUND)
set(FSTRCMP_INCLUDE_DIRS ${FSTRCMP_INCLUDE_DIR})
set(FSTRCMP_LIBRARIES ${FSTRCMP_LIBRARY})
-endif()
-if(NOT TARGET fstrcmp)
- add_library(fstrcmp UNKNOWN IMPORTED)
- set_target_properties(fstrcmp PROPERTIES
- IMPORTED_LOCATION "${FSTRCMP_LIBRARY}"
- INTERFACE_INCLUDE_DIRECTORIES "${FSTRCMP_INCLUDE_DIR}")
+ if(NOT TARGET fstrcmp)
+ add_library(fstrcmp UNKNOWN IMPORTED)
+ set_target_properties(fstrcmp PROPERTIES
+ IMPORTED_LOCATION "${FSTRCMP_LIBRARY}"
+ INTERFACE_INCLUDE_DIRECTORIES "${FSTRCMP_INCLUDE_DIR}")
+ endif()
endif()
+
mark_as_advanced(FSTRCMP_INCLUDE_DIR FSTRCMP_LIBRARY)