Browse Source

cmAddCustomCommandCommand: use std::string const& for FileIsFullPath

Ben Boeckel 7 years ago
parent
commit
f9235fd474
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/cmAddCustomCommandCommand.cxx

+ 1 - 1
Source/cmAddCustomCommandCommand.cxx

@@ -177,7 +177,7 @@ bool cmAddCustomCommandCommand::InitialPass(
         case doing_output:
         case doing_output:
         case doing_outputs:
         case doing_outputs:
         case doing_byproducts:
         case doing_byproducts:
-          if (!cmSystemTools::FileIsFullPath(copy.c_str())) {
+          if (!cmSystemTools::FileIsFullPath(copy)) {
             // This is an output to be generated, so it should be
             // This is an output to be generated, so it should be
             // under the build tree.  CMake 2.4 placed this under the
             // under the build tree.  CMake 2.4 placed this under the
             // source tree.  However the only case that this change
             // source tree.  However the only case that this change