소스 검색

BUG: Fix regular expression used to determine the link_type in creation of CTK_EXTERNAL_LIBRARIES

The regular expression was based only on the match of either "debug", "optimized"
or "debug". Adding "^" and "$" allow to make sure library path having
this word in their path are NOT considered as link type by error.
Jean-Christophe Fillion-Robin 15 년 전
부모
커밋
71a477b453
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Utilities/LastConfigureStep/CMakeLists.txt

+ 1 - 1
Utilities/LastConfigureStep/CMakeLists.txt

@@ -58,7 +58,7 @@ SET(CTK_EXTERNAL_LIBRARIES)
 # target dependency which are neither CTK or static library
 SET(link_type)
 FOREACH(ctk_target_dependency ${ctk_target_dependencies})
-  STRING(REGEX MATCH "(general|optimized|debug)" is_link_type ${ctk_target_dependency})
+  STRING(REGEX MATCH "^(general|optimized|debug)$" is_link_type ${ctk_target_dependency})
   IF(is_link_type)
     SET(link_type ${ctk_target_dependency})
   ELSE()