[trunk] add some sanity check in CMakeLists to prevent STRING(REGEX..) call issues
This commit is contained in:
parent
815e2f3d03
commit
ac946a4602
3
CHANGES
3
CHANGES
|
@ -5,6 +5,9 @@ What's New for OpenJPEG
|
|||
! : changed
|
||||
+ : added
|
||||
|
||||
November 9, 2011
|
||||
+ [jmalik] add some sanity check in CMakeLists to prevent STRING(REGEX..) call issues
|
||||
|
||||
November 8, 2011
|
||||
+ [mickael] WIP: add get_decoded_tile functionality
|
||||
+ [mickael] WIP: clean and enhance j2K file
|
||||
|
|
|
@ -132,13 +132,16 @@ FOREACH(OPJ_TEST_CMD_LINE ${OPJ_TEST_CMD_LINE_LIST})
|
|||
|
||||
# Check if the first argument begin by the comment sign
|
||||
LIST(GET CMD_ARG_LIST 0 EXE_NAME)
|
||||
STRING(REGEX MATCH "^#" IGNORE_LINE_FOUND ${EXE_NAME})
|
||||
|
||||
IF(IGNORE_LINE_FOUND)
|
||||
IF(EXE_NAME)
|
||||
STRING(REGEX MATCH "^#" IGNORE_LINE_FOUND ${EXE_NAME})
|
||||
ENDIF(EXE_NAME)
|
||||
|
||||
IF(IGNORE_LINE_FOUND OR NOT EXE_NAME)
|
||||
|
||||
#MESSAGE( STATUS "Current line is ignored: ${OPJ_TEST_CMD_LINE}")
|
||||
|
||||
ELSE(IGNORE_LINE_FOUND)
|
||||
ELSE(IGNORE_LINE_FOUND OR NOT EXE_NAME)
|
||||
|
||||
# Check if the first argument begin by the failed sign
|
||||
SET(FAILED_TEST_FOUND 0)
|
||||
|
@ -330,7 +333,7 @@ FOREACH(OPJ_TEST_CMD_LINE ${OPJ_TEST_CMD_LINE_LIST})
|
|||
|
||||
ENDIF(ENC_TEST_FOUND)
|
||||
|
||||
ENDIF(IGNORE_LINE_FOUND)
|
||||
ENDIF(IGNORE_LINE_FOUND OR NOT EXE_NAME)
|
||||
|
||||
ENDFOREACH(OPJ_TEST_CMD_LINE)
|
||||
|
||||
|
|
Loading…
Reference in New Issue