Use cmake echo

This commit is contained in:
Andy Cedilnik 2002-09-27 17:16:03 -04:00
parent 7ddb408621
commit 2f1052b0e5
3 changed files with 6 additions and 6 deletions

View File

@ -86,8 +86,8 @@ MESSAGE (Test " " escape " " semi-colon " " \; \;)
MESSAGE("\nIgnore this message") MESSAGE("\nIgnore this message")
OPTION(NO_EXEC_PROGRAM "Do not test EXEC_PROGRAM" 0) OPTION(NO_EXEC_PROGRAM "Do not test EXEC_PROGRAM" 0)
IF (NOT NO_EXEC_PROGRAM) IF (NOT NO_EXEC_PROGRAM)
EXEC_PROGRAM("echo NO_EXEC_PROGRAM" "${Complex_BINARY_DIR}") EXEC_PROGRAM("${CMAKE_COMMAND} -E echo NO_EXEC_PROGRAM" "${Complex_BINARY_DIR}")
EXEC_PROGRAM(echo ARGS NO_EXEC_PROGRAM "${Complex_BINARY_DIR}") EXEC_PROGRAM(${CMAKE_COMMAND} ARGS -E echo NO_EXEC_PROGRAM "${Complex_BINARY_DIR}")
ELSE (NOT NO_EXEC_PROGRAM) ELSE (NOT NO_EXEC_PROGRAM)
MESSAGE("Set this option ON") MESSAGE("Set this option ON")
ENDIF (NOT NO_EXEC_PROGRAM) ENDIF (NOT NO_EXEC_PROGRAM)

View File

@ -86,8 +86,8 @@ MESSAGE (Test " " escape " " semi-colon " " \; \;)
MESSAGE("\nIgnore this message") MESSAGE("\nIgnore this message")
OPTION(NO_EXEC_PROGRAM "Do not test EXEC_PROGRAM" 0) OPTION(NO_EXEC_PROGRAM "Do not test EXEC_PROGRAM" 0)
IF (NOT NO_EXEC_PROGRAM) IF (NOT NO_EXEC_PROGRAM)
EXEC_PROGRAM("echo NO_EXEC_PROGRAM" "${Complex_BINARY_DIR}") EXEC_PROGRAM("${CMAKE_COMMAND} -E echo NO_EXEC_PROGRAM" "${Complex_BINARY_DIR}")
EXEC_PROGRAM(echo ARGS NO_EXEC_PROGRAM "${Complex_BINARY_DIR}") EXEC_PROGRAM(${CMAKE_COMMAND} ARGS -E echo NO_EXEC_PROGRAM "${Complex_BINARY_DIR}")
ELSE (NOT NO_EXEC_PROGRAM) ELSE (NOT NO_EXEC_PROGRAM)
MESSAGE("Set this option ON") MESSAGE("Set this option ON")
ENDIF (NOT NO_EXEC_PROGRAM) ENDIF (NOT NO_EXEC_PROGRAM)

View File

@ -86,8 +86,8 @@ MESSAGE (Test " " escape " " semi-colon " " \; \;)
MESSAGE("\nIgnore this message") MESSAGE("\nIgnore this message")
OPTION(NO_EXEC_PROGRAM "Do not test EXEC_PROGRAM" 0) OPTION(NO_EXEC_PROGRAM "Do not test EXEC_PROGRAM" 0)
IF (NOT NO_EXEC_PROGRAM) IF (NOT NO_EXEC_PROGRAM)
EXEC_PROGRAM("echo NO_EXEC_PROGRAM" "${Complex_BINARY_DIR}") EXEC_PROGRAM("${CMAKE_COMMAND} -E echo NO_EXEC_PROGRAM" "${Complex_BINARY_DIR}")
EXEC_PROGRAM(echo ARGS NO_EXEC_PROGRAM "${Complex_BINARY_DIR}") EXEC_PROGRAM(${CMAKE_COMMAND} ARGS -E echo NO_EXEC_PROGRAM "${Complex_BINARY_DIR}")
ELSE (NOT NO_EXEC_PROGRAM) ELSE (NOT NO_EXEC_PROGRAM)
MESSAGE("Set this option ON") MESSAGE("Set this option ON")
ENDIF (NOT NO_EXEC_PROGRAM) ENDIF (NOT NO_EXEC_PROGRAM)