diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2022-08-21 00:48:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-09-22 13:24:47 (GMT) |
commit | 0aed435b351577681a7cbbd8c542fbe998d1717d (patch) | |
tree | 49eea98dfea8fa493bf27d70b2b0fafc828277d2 /Tests/CMakeLib | |
parent | a67c9f975686d4036a31597d535982c31df97ebe (diff) | |
download | CMake-0aed435b351577681a7cbbd8c542fbe998d1717d.zip CMake-0aed435b351577681a7cbbd8c542fbe998d1717d.tar.gz CMake-0aed435b351577681a7cbbd8c542fbe998d1717d.tar.bz2 |
Build: Simplify `configure_file()` calls
Diffstat (limited to 'Tests/CMakeLib')
-rw-r--r-- | Tests/CMakeLib/CMakeLists.txt | 6 | ||||
-rw-r--r-- | Tests/CMakeLib/PseudoMemcheck/CMakeLists.txt | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/Tests/CMakeLib/CMakeLists.txt b/Tests/CMakeLib/CMakeLists.txt index 1d45162..612d4b4 100644 --- a/Tests/CMakeLib/CMakeLists.txt +++ b/Tests/CMakeLib/CMakeLists.txt @@ -47,12 +47,10 @@ if(WIN32) list(APPEND CMakeLib_TESTS testVisualStudioSlnParser.cxx ) - configure_file(${CMAKE_CURRENT_SOURCE_DIR}/testVisualStudioSlnParser.h.in - ${CMAKE_CURRENT_BINARY_DIR}/testVisualStudioSlnParser.h @ONLY) + configure_file(testVisualStudioSlnParser.h.in testVisualStudioSlnParser.h @ONLY) endif() -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/testXMLParser.h.in - ${CMAKE_CURRENT_BINARY_DIR}/testXMLParser.h @ONLY) +configure_file(testXMLParser.h.in testXMLParser.h @ONLY) create_test_sourcelist(CMakeLib_TEST_SRCS CMakeLibTests.cxx ${CMakeLib_TESTS}) add_executable(CMakeLibTests ${CMakeLib_TEST_SRCS}) diff --git a/Tests/CMakeLib/PseudoMemcheck/CMakeLists.txt b/Tests/CMakeLib/PseudoMemcheck/CMakeLists.txt index 3f2f891..b4bc921 100644 --- a/Tests/CMakeLib/PseudoMemcheck/CMakeLists.txt +++ b/Tests/CMakeLib/PseudoMemcheck/CMakeLists.txt @@ -1,5 +1,5 @@ foreach(_retval IN ITEMS 0 1) - configure_file("${CMAKE_CURRENT_SOURCE_DIR}/memtester.cxx.in" "${CMAKE_CURRENT_BINARY_DIR}/ret${_retval}.cxx" @ONLY) + configure_file(memtester.cxx.in ret${_retval}.cxx @ONLY) endforeach() include_directories(${CMake_SOURCE_DIR}/Source ${CMake_BINARY_DIR}/Source) |