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:
1 parent
05128b9a33
commit
aa0ce7fc54
1 file changed
+2
-1
@@ -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