From fdf589d2daff8a6c027585139025085fbd65c041 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Wed, 29 Sep 2004 08:58:45 -0400 Subject: [PATCH] ENH: Allow CMake to use CommandLineArguments without warning --- Source/kwsys/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index f4edfc9b0..f18cdf0ac 100644 --- a/Source/kwsys/CMakeLists.txt +++ b/Source/kwsys/CMakeLists.txt @@ -257,9 +257,11 @@ ENDFOREACH(c) IF(KWSYS_USE_CommandLineArguments) IF(NOT ParaView_SOURCE_DIR) - IF(NOT KWSYS_STANDALONE) - MESSAGE("Command Line Arguments is experimental code for now") - ENDIF(NOT KWSYS_STANDALONE) + IF(NOT CMake_SOURCE_DIR) + IF(NOT KWSYS_STANDALONE) + MESSAGE("Command Line Arguments is experimental code for now") + ENDIF(NOT KWSYS_STANDALONE) + ENDIF(NOT CMake_SOURCE_DIR) ENDIF(NOT ParaView_SOURCE_DIR) ENDIF(KWSYS_USE_CommandLineArguments)