浏览代码

BUG: work around XCode issue

Ken Martin 19 年之前
父节点
当前提交
ad748ce26e

+ 1 - 1
Tests/LoadCommand/CMakeCommands/cmTestCommand.c

@@ -128,7 +128,7 @@ static int CCONV InitialPass(void *inf, void *mf, int argc, char *argv[])
   ccArgs[3] = argv[1];
   ccDep[0] = ccArgs[2];
   ccOut[0] = ccArgs[3];
-  info->CAPI->AddCustomCommand(mf, "LoadedCommand.cxx",
+  info->CAPI->AddCustomCommand(mf, "LoadedCommand.cxx.in",
                                file,
                                4, ccArgs,
                                1, ccDep,

+ 2 - 2
Tests/LoadCommand/CMakeLists.txt

@@ -52,8 +52,8 @@ IF (COMPILE_OK)
   # if the command loaded, execute the command
   IF (COMMAND CMAKE_TEST_COMMAND)
     CMAKE_TEST_COMMAND(
-      "${LoadedCommand_SOURCE_DIR}/LoadedCommand.cxx"
-      "${LoadedCommand_BINARY_DIR}/LoadedCommand2.cxx"
+      "${LoadedCommand_SOURCE_DIR}/LoadedCommand.cxx.in"
+      "${LoadedCommand_BINARY_DIR}/LoadedCommand2.cxx.in"
       "${LoadedCommand_BINARY_DIR}/LoadedCommand3.cxx"
       )
   ENDIF (COMMAND CMAKE_TEST_COMMAND)

+ 0 - 0
Tests/LoadCommand/LoadedCommand.cxx → Tests/LoadCommand/LoadedCommand.cxx.in


+ 1 - 1
Tests/LoadCommandOneConfig/CMakeCommands/cmTestCommand.c

@@ -128,7 +128,7 @@ static int CCONV InitialPass(void *inf, void *mf, int argc, char *argv[])
   ccArgs[3] = argv[1];
   ccDep[0] = ccArgs[2];
   ccOut[0] = ccArgs[3];
-  info->CAPI->AddCustomCommand(mf, "LoadedCommand.cxx",
+  info->CAPI->AddCustomCommand(mf, "LoadedCommand.cxx.in",
                                file,
                                4, ccArgs,
                                1, ccDep,

+ 2 - 2
Tests/LoadCommandOneConfig/CMakeLists.txt

@@ -52,8 +52,8 @@ IF (COMPILE_OK)
   # if the command loaded, execute the command
   IF (COMMAND CMAKE_TEST_COMMAND)
     CMAKE_TEST_COMMAND(
-      "${LoadedCommand_SOURCE_DIR}/LoadedCommand.cxx"
-      "${LoadedCommand_BINARY_DIR}/LoadedCommand2.cxx"
+      "${LoadedCommand_SOURCE_DIR}/LoadedCommand.cxx.in"
+      "${LoadedCommand_BINARY_DIR}/LoadedCommand2.cxx.in"
       "${LoadedCommand_BINARY_DIR}/LoadedCommand3.cxx"
       )
   ENDIF (COMMAND CMAKE_TEST_COMMAND)

+ 0 - 0
Tests/LoadCommandOneConfig/LoadedCommand.cxx → Tests/LoadCommandOneConfig/LoadedCommand.cxx.in