Files
swift-mirror/docs/GenerateTopLevelLitreCMakeLists.cmake
Dave Abrahams bb39a65ac4 Fix build system for LitRe tests
It didn't create the appropriate dependencies on the .rst files.  This
is a more-principled approach that actually invokes CMake from within
itself.

Note: expect it to fail if you use the Makefile generator until I
rename the .rst files

Swift SVN r4545
2013-03-29 22:58:37 +00:00

7 lines
206 B
CMake

cmake_minimum_required(VERSION 2.8)
set(rst_files)
foreach(i RANGE 5 ${CMAKE_ARGC})
list(APPEND rst_files ${CMAKE_ARGV${i}})
endforeach()
configure_file(${SOURCE_DIR}/LitReTemplate.cmake ${OUTPUT} @ONLY)