[skip build]
This commit is contained in:
alexey.lysiuk 2023-04-03 15:38:32 +03:00
parent 30420fcfb2
commit 961e571183
3 changed files with 6 additions and 4 deletions

View File

@ -462,8 +462,8 @@ class CMakeStaticDependencyTarget(CMakeTarget):
def keep_module_target(self, state: BuildState, target: str):
import_patterns = (
r'list\s*\(APPEND\s+_IMPORT_CHECK_TARGETS\s+(?P<target>\w+::[\w-]+)[\s)]',
r'list\s*\(APPEND\s+_IMPORT_CHECK_FILES_FOR_(?P<target>\w+::[\w-]+)\s',
r'list\s*\(APPEND\s+_cmake_import_check_targets\s+(?P<target>\w+::[\w-]+)[\s)]',
r'list\s*\(APPEND\s+_cmake_import_check_files_for_(?P<target>\w+::[\w-]+)\s',
)
import_regexes = [re.compile(regex, re.IGNORECASE) for regex in import_patterns]

View File

@ -113,6 +113,10 @@ class FluidSynthTarget(base.CMakeStaticDependencyTarget):
super().configure(state)
def post_build(self, state: BuildState):
super().prepare_source(state)
self.keep_module_target(state, 'FluidSynth::libfluidsynth')
class GettextTarget(base.ConfigureMakeStaticDependencyTarget):
def __init__(self, name='gettext'):

View File

@ -11,8 +11,6 @@ set_target_properties(FluidSynth::fluidsynth PROPERTIES
IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/bin/fluidsynth"
)
#list(APPEND _cmake_import_check_targets FluidSynth::fluidsynth )
#list(APPEND _cmake_import_check_files_for_FluidSynth::fluidsynth "${_IMPORT_PREFIX}/bin/fluidsynth" )
# Import target "FluidSynth::libfluidsynth" for configuration "Release"
set_property(TARGET FluidSynth::libfluidsynth APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE)