Commit 078e35de authored by David Cole's avatar David Cole
Browse files

NMake: Add a test to demonstrate EmptyDepends issue (#13392)

parent b336d9a0
......@@ -573,6 +573,8 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
)
list(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/CustomCommand")
ADD_TEST_MACRO(EmptyDepends ${CMAKE_CTEST_COMMAND})
add_test(CustomCommandWorkingDirectory ${CMAKE_CTEST_COMMAND}
--build-and-test
"${CMake_SOURCE_DIR}/Tests/CustomCommandWorkingDirectory"
......
cmake_minimum_required(VERSION 2.8)
project(EmptyDepends)
include(CTest)
set(extra_dep)
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/qrc_my.cxx
COMMAND ${CMAKE_COMMAND} -E touch "${CMAKE_BINARY_DIR}/qrc_my.cxx"
DEPENDS "${extra_dep}" "${CMAKE_BINARY_DIR}/my.qrc")
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/my.qrc
COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_BINARY_DIR}/my.qrc)
add_library(qrc SHARED ${CMAKE_BINARY_DIR}/qrc_my.cxx)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment