Browse Source

ENH: fix test to work with in source build

Bill Hoffman 20 years ago
parent
commit
aacd51034a

+ 1 - 1
Tests/CustomCommandWorkingDirectory/CMakeLists.txt

@@ -2,7 +2,7 @@ PROJECT(TestWorkingDir)
 
 ADD_CUSTOM_COMMAND(
   OUTPUT "${TestWorkingDir_BINARY_DIR}/working.c"
-  COMMAND "${CMAKE_COMMAND}" -E copy ./working.c "${TestWorkingDir_BINARY_DIR}/working.c"
+  COMMAND "${CMAKE_COMMAND}" -E copy ./working.c.in "${TestWorkingDir_BINARY_DIR}/working.c"
   WORKING_DIRECTORY "${TestWorkingDir_SOURCE_DIR}"
   COMMENT "custom command"
 )

+ 0 - 0
Tests/CustomCommandWorkingDirectory/working.c → Tests/CustomCommandWorkingDirectory/working.c.in