Enable build under NixOS (#6855)
Explicitly call the perl interpreter when building the SWH LADSPA plugins
This commit is contained in:
committed by
GitHub
parent
94d0b9111b
commit
7e8c79a191
@@ -16,6 +16,7 @@ SET(COMPILE_FLAGS "${COMPILE_FLAGS} ${PIC_FLAGS}")
|
||||
# Loop over every XML file
|
||||
FILE(GLOB XML_SOURCES "${CMAKE_CURRENT_SOURCE_DIR}/ladspa/*.xml")
|
||||
LIST(SORT XML_SOURCES)
|
||||
|
||||
FOREACH(_item ${XML_SOURCES})
|
||||
# Get library name and (soon to be) C file
|
||||
GET_FILENAME_COMPONENT(_plugin "${_item}" NAME_WE)
|
||||
@@ -24,7 +25,7 @@ FOREACH(_item ${XML_SOURCES})
|
||||
# Coerce XML source file to C
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT "${_out_file}"
|
||||
COMMAND ./makestub.pl "${_item}" > "${_out_file}"
|
||||
COMMAND "${PERL_EXECUTABLE}" ./makestub.pl "${_item}" > "${_out_file}"
|
||||
DEPENDS "${_item}"
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/ladspa"
|
||||
VERBATIM
|
||||
|
||||
Reference in New Issue
Block a user