File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -34,9 +34,9 @@ if(Ogg_FOUND)
34
34
if (EXISTS "${Ogg_INCLUDE_PATH} /ogg" )
35
35
list (APPEND Ogg_dirs "${Ogg_INCLUDE_PATH} /ogg" )
36
36
endif ()
37
- if (NOT TARGET Ogg::Ogg )
38
- add_library (Ogg::Ogg UNKNOWN IMPORTED )
39
- set_target_properties (Ogg::Ogg PROPERTIES
37
+ if (NOT TARGET Ogg::ogg )
38
+ add_library (Ogg::ogg UNKNOWN IMPORTED )
39
+ set_target_properties (Ogg::ogg PROPERTIES
40
40
IMPORTED_LOCATION "${Ogg_LIBRARY} "
41
41
INTERFACE_INCLUDE_DIRECTORIES "${Ogg_dirs} "
42
42
INTERFACE_COMPILE_OPTIONS "${Ogg_COMPILE_OPTIONS} "
@@ -46,3 +46,5 @@ if(Ogg_FOUND)
46
46
)
47
47
endif ()
48
48
endif ()
49
+
50
+ set (Ogg_INCLUDE_DIRS ${Ogg_INCLUDE_PATH} )
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ if(OpusFile_FOUND)
40
40
add_library (OpusFile::opusfile UNKNOWN IMPORTED )
41
41
set_target_properties (OpusFile::opusfile PROPERTIES
42
42
IMPORTED_LOCATION "${OpusFile_LIBRARY} "
43
- INTERFACE_INCLUDE_DIRECTORIES "${OpusFile_dirs} ;${Ogg_dirs} "
43
+ INTERFACE_INCLUDE_DIRECTORIES "${OpusFile_dirs} ;$<TARGET_PROPERTY:Ogg::ogg,INTERFACE_INCLUDE_DIRECTORIES> "
44
44
INTERFACE_COMPILE_OPTIONS "${OpusFile_COMPILE_OPTIONS} "
45
45
INTERFACE_LINK_LIBRARIES "${OpusFile_LINK_LIBRARIES} "
46
46
INTERFACE_LINK_OPTIONS "${OpusFile_LINK_OPTIONS} "
You can’t perform that action at this time.
0 commit comments