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)