mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Re-arrange include paths to ensure standalone builds use correctly vendored headers.
This commit is contained in:
parent
697067fd33
commit
1327ca91cb
@ -20,20 +20,24 @@ include(CheckAtomic)
|
||||
include(AddPlugin)
|
||||
include(ConfigureRpath)
|
||||
include(ConfigureBsdPaths)
|
||||
include(ConfigureStandalone)
|
||||
if (${BUILD_STANDALONE} MATCHES "true")
|
||||
include(ConfigureStandalone)
|
||||
endif()
|
||||
include(AddDarwinSystemLibs)
|
||||
include(AddLinuxSystemLibs)
|
||||
include(ConfigureCurses)
|
||||
include(ConfigureCompilerFlags)
|
||||
include(FindVendorLibrary)
|
||||
|
||||
if (NOT DEFINED ENV{HOMEBREW_PREFIX})
|
||||
if (NOT DEFINED ENV{HOMEBREW_PREFIX} AND NOT ${BUILD_STANDALONE} MATCHES "true")
|
||||
find_program(CCACHE_FOUND ccache)
|
||||
if (CCACHE_FOUND)
|
||||
message(STATUS "${BoldGreen}[ccache] ccache enabled!${ColorReset}")
|
||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE ccache)
|
||||
set_property(GLOBAL PROPERTY RULE_LAUNCH_LINK ccache)
|
||||
endif(CCACHE_FOUND)
|
||||
else()
|
||||
message(STATUS "${BoldYellow}[ccache] disabled; homebrew or standalone build detected.${ColorReset}")
|
||||
endif()
|
||||
|
||||
if (CROSS_COMPILE_SYSROOT)
|
||||
|
@ -6,6 +6,7 @@ add_library(ffmpegdecoder SHARED ${ffmpegdecoder_SOURCES})
|
||||
|
||||
if (${BUILD_STANDALONE} MATCHES "true")
|
||||
include_directories(BEFORE ${VENDOR_INCLUDE_DIRECTORIES})
|
||||
message(STATUS "[ffmpegdecoder] using include dirs: ${VENDOR_INCLUDE_DIRECTORIES}")
|
||||
find_vendor_library(AVCODEC avcodec-musikcube)
|
||||
find_vendor_library(AVUTIL avutil-musikcube)
|
||||
find_vendor_library(AVFORMAT avformat-musikcube)
|
||||
|
Loading…
Reference in New Issue
Block a user