summaryrefslogtreecommitdiff
path: root/Tests/CustomCommand/GeneratedHeader
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/CustomCommand/GeneratedHeader')
-rw-r--r--Tests/CustomCommand/GeneratedHeader/CMakeLists.txt14
1 files changed, 7 insertions, 7 deletions
diff --git a/Tests/CustomCommand/GeneratedHeader/CMakeLists.txt b/Tests/CustomCommand/GeneratedHeader/CMakeLists.txt
index 2d47d87..f7308e8 100644
--- a/Tests/CustomCommand/GeneratedHeader/CMakeLists.txt
+++ b/Tests/CustomCommand/GeneratedHeader/CMakeLists.txt
@@ -1,13 +1,13 @@
# Simulate in-source build include-file behavior for out-of-source
# builds.
-SET(CMAKE_INCLUDE_CURRENT_DIR 1)
+set(CMAKE_INCLUDE_CURRENT_DIR 1)
-ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/generated.h
- COMMAND
+add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/generated.h
+ COMMAND
${CMAKE_COMMAND} ARGS -E
- copy ${CMAKE_CURRENT_SOURCE_DIR}/generated.h.in
- ${CMAKE_CURRENT_BINARY_DIR}/generated.h
+ copy ${CMAKE_CURRENT_SOURCE_DIR}/generated.h.in
+ ${CMAKE_CURRENT_BINARY_DIR}/generated.h
)
-ADD_LIBRARY(GeneratedHeader main.cpp ${CMAKE_CURRENT_BINARY_DIR}/generated.h)
-
+add_library(GeneratedHeader main.cpp ${CMAKE_CURRENT_BINARY_DIR}/generated.h)
+