mirror of
https://github.com/LMMS/lmms.git
synced 2026-01-28 16:23:12 -05:00
Improve CALF's CMakelists
Let CALF's CMakelists apply the name filter only on the basenames of the files, but not on their directories. This prevents errors if the LMMS folder is under a directory which contains, e.g., "lv2".
This commit is contained in:
@@ -16,8 +16,9 @@ LIST(SORT SOURCES)
|
||||
# Skip files matching pattern
|
||||
SET(FILE_PATTERNS "ctl;gui;gtk;session;connector;jack;rdf;draw;fluid;preset;lv2;benchmark;win;plugin.cpp")
|
||||
FOREACH(_item ${SOURCES})
|
||||
GET_FILENAME_COMPONENT(m_basename ${_item} NAME)
|
||||
FOREACH(_pattern ${FILE_PATTERNS})
|
||||
IF(${_item} MATCHES ${_pattern})
|
||||
IF(${m_basename} MATCHES ${_pattern})
|
||||
LIST(REMOVE_ITEM SOURCES ${_item})
|
||||
ENDIF()
|
||||
ENDFOREACH()
|
||||
|
||||
Reference in New Issue
Block a user