diff options
-rw-r--r-- | cmake/FindOGG.cmake | 6 | ||||
-rw-r--r-- | src/libFLAC/CMakeLists.txt | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/cmake/FindOGG.cmake b/cmake/FindOGG.cmake index f9843455..7f424126 100644 --- a/cmake/FindOGG.cmake +++ b/cmake/FindOGG.cmake @@ -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() diff --git a/src/libFLAC/CMakeLists.txt b/src/libFLAC/CMakeLists.txt index 0f287e0b..288e1a65 100644 --- a/src/libFLAC/CMakeLists.txt +++ b/src/libFLAC/CMakeLists.txt @@ -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 |