Ogg::Ogg renamed to Ogg::ogg
authorVitaliy Kirsanov <krokoziabla@yandex-team.ru>
Mon, 29 Apr 2019 10:28:55 +0000 (13:28 +0300)
committerErik de Castro Lopo <erikd@mega-nerd.com>
Sat, 4 May 2019 01:41:48 +0000 (11:41 +1000)
cmake/FindOGG.cmake
src/libFLAC/CMakeLists.txt

index f984345..7f42412 100644 (file)
@@ -18,9 +18,9 @@ find_package_handle_standard_args(OGG
     REQUIRED_VARS OGG_INCLUDE_DIR OGG_LIBRARY
     VERSION_VAR _OGG_VERSION)
 
-if(OGG_FOUND AND NOT TARGET Ogg::Ogg)
-    add_library(Ogg::Ogg UNKNOWN IMPORTED)
-    set_target_properties(Ogg::Ogg PROPERTIES
+if(OGG_FOUND AND NOT TARGET Ogg::ogg)
+    add_library(Ogg::ogg UNKNOWN IMPORTED)
+    set_target_properties(Ogg::ogg PROPERTIES
         INTERFACE_INCLUDE_DIRECTORIES "${OGG_INCLUDE_DIR}"
         IMPORTED_LOCATION "${OGG_LIBRARY}")
 endif()
index 0f287e0..288e1a6 100644 (file)
@@ -101,8 +101,8 @@ target_include_directories(FLAC INTERFACE
     "$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>"
     "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
 target_link_libraries(FLAC PRIVATE $<$<BOOL:${HAVE_LROUND}>:m>)
-if(TARGET Ogg::Ogg)
-    target_link_libraries(FLAC PUBLIC Ogg::Ogg)
+if(TARGET Ogg::ogg)
+    target_link_libraries(FLAC PUBLIC Ogg::ogg)
 endif()
 if(BUILD_SHARED_LIBS)
     set_target_properties(FLAC PROPERTIES