Skip to content

Commit

Permalink
Restrict regular expression on main as well
Browse files Browse the repository at this point in the history
  • Loading branch information
StMiky committed Mar 16, 2024
1 parent 9d9308b commit 849539d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sw/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ FOREACH(file_path IN LISTS new_list)
SET(add 1)
elseif( ${file_path} MATCHES "${SOURCE_PATH}external/" )
SET(add 1)
elseif( ( ${file_path} MATCHES "${SOURCE_PATH}applications/${PROJECT}/" ) AND ( NOT ${file_path} MATCHES ${MAINFILE} ) )
SET(add 1)
elseif( ( ${file_path} MATCHES "${SOURCE_PATH}applications/${PROJECT}/" ) AND ( ${file_path} MATCHES ${MAINFILE} ) )
elseif( ${file_path} MATCHES "${SOURCE_PATH}applications/${PROJECT}/.*${MAINFILE}\." ) # look for main.*
SET(app_found 1)
elseif( ${file_path} MATCHES "${SOURCE_PATH}applications/${PROJECT}/" ) # other sources
SET(add 1)
endif()

if( add EQUAL 1 ) # If the file path mathced one of the criterion, add it to the list
Expand All @@ -155,7 +155,7 @@ if( app_found EQUAL 0 )
SET(add 0) # This variable is set to 1 if the file_pth needs to be added to the list
if(${file_path} MATCHES "${ROOT_PROJECT}device/")
SET(add 1)
elseif( ( ${file_path} MATCHES "${ROOT_PROJECT}/applications/${PROJECT}/" ) AND ( NOT ${file_path} MATCHES ${MAINFILE} ) )
elseif( ( ${file_path} MATCHES "${ROOT_PROJECT}/applications/${PROJECT}/" ) AND ( NOT ${file_path} MATCHES "${ROOT_PROJECT}applications/${PROJECT}/.*${MAINFILE}\." ) )
SET(add 1)
endif()

Expand Down

0 comments on commit 849539d

Please sign in to comment.