assimp/assimp
cmake-modules/CoverallsGenerateGcov.cmake
:147
string(CONFIGURE ${JSON_REPO_TEMPLATE} JSON_REPO_DATA)
string(CONFIGURE ${JSON_REPO_TEMPLATE} JSON_REPO_DATA)
string(CONFIGURE ${SRC_FILE_TEMPLATE} FILE_JSON)
string(CONFIGURE ${SRC_FILE_TEMPLATE} FILE_JSON)
string(CONFIGURE ${JSON_TEMPLATE} JSON)
string(CONFIGURE "${CMD_LINES}" CMD_LINES)
string(CONFIGURE "${TEST_RUNNER_TEMPLATE}" TEST_RUNNER)
string(CONFIGURE "${MODES_RUNNER_TEMPLATE}" MODES_RUNNER)
string(CONFIGURE ${JSON_REPO_TEMPLATE} JSON_REPO_DATA)
string(CONFIGURE ${SRC_FILE_TEMPLATE} FILE_JSON)
string(CONFIGURE ${SRC_FILE_TEMPLATE} FILE_JSON)
string(CONFIGURE ${JSON_TEMPLATE} JSON)
string(CONFIGURE "${index_html}" index_html @ONLY)
string(CONFIGURE "${index_html}" index_html)
string(REPLACE "-DUSE_LIBXML=1" "-DUSE_LIBXML=1 ${CMAKE_PACKAGE_FLAGS}" CONFIGURE "${CONFIGURE}")
string(REPLACE "-DUSE_LIBXML=1" "-DUSE_LIBXML=1 ${CMAKE_PACKAGE_FLAGS}" CONFIGURE "${CONFIGURE}")
string(CONFIGURE [[
#include <utility>
#include <@CXX_COROUTINES_HEADER@>
struct present {
struct promise_type {
int result;
present get_return_object() { return present{*this}; }
@CXX_COROUTINES_NAMESPACE@::suspend_never initial_suspend() { return {}; }
@CXX_COROUTINES_NAMESPACE@::suspend_always final_suspend() noexcept { return {}; }
void return_value(int i) { result = i; }
void unhandled_exception() {}
};
friend struct promise_type;
present(present&& that) : coro_(std::exchange(that.coro_, {})) {}
~present() { if(coro_) coro_.destroy(); }
bool await_ready() const { return true; }
void await_suspend(@CXX_COROUTINES_NAMESPACE@::coroutine_handle<>) const {}
int await_resume() const { return coro_.promise().result; }
private:
present(promise_type& promise)
: coro_(@CXX_COROUTINES_NAMESPACE@::coroutine_handle<promise_type>::from_promise(promise)) {}
@CXX_COROUTINES_NAMESPACE@::coroutine_handle<promise_type> coro_;
};
present f(int n) {
if (n < 2)
co_return 1;
else
co_return n * co_await f(n - 1);
}
int main() {
return f(5).await_resume() != 120;
}
]] code @ONLY)
string(CONFIGURE [[
#include <@CXX_MEMORY_RESOURCE_HEADER@>
int main() {
@CXX_MEMORY_RESOURCE_NAMESPACE@::polymorphic_allocator<char> alloc{
@CXX_MEMORY_RESOURCE_NAMESPACE@::new_delete_resource()};
(void) alloc;
}
]] code @ONLY)
string(CONFIGURE "${__config}" ${var_name} ${ARGN})
string(CONFIGURE ${_package_footer_template} QTWEBKIT_PACKAGE_FOOTER @ONLY)
string(CONFIGURE ${_package_footer_template} QTWEBKIT_PACKAGE_FOOTER @ONLY)
string(CONFIGURE [[
namespace { const char file_array[] = { @chars@ 0 }; }
namespace cmrc { namespace @NAMESPACE@ { namespace res_chars {
extern const char* const @SYMBOL@_begin = file_array;
extern const char* const @SYMBOL@_end = file_array + @n_bytes@;
}}}
]] code)
string(CONFIGURE [=[
#include <cmrc/cmrc.hpp>
#include <map>
#include <utility>
namespace cmrc {
namespace @ARG_NAMESPACE@ {
namespace res_chars {
// These are the files which are available in this resource library
$<JOIN:$<TARGET_PROPERTY:@libname@,CMRC_EXTERN_DECLS>,
>
}
namespace {
const cmrc::detail::index_type&
get_root_index() {
static cmrc::detail::directory root_directory_;
static cmrc::detail::file_or_directory root_directory_fod{root_directory_};
static cmrc::detail::index_type root_index;
root_index.emplace("", &root_directory_fod);
struct dir_inl {
class cmrc::detail::directory& directory;
};
dir_inl root_directory_dir{root_directory_};
(void)root_directory_dir;
$<JOIN:$<TARGET_PROPERTY:@libname@,CMRC_MAKE_DIRS>,
>
$<JOIN:$<TARGET_PROPERTY:@libname@,CMRC_MAKE_FILES>,
>
return root_index;
}
}
cmrc::embedded_filesystem get_filesystem() {
static auto& index = get_root_index();
return cmrc::embedded_filesystem{index};
}
} // @ARG_NAMESPACE@
} // cmrc
]=] cpp_content @ONLY)
string(CONFIGURE [[
set(VCPKG_DETECTED_Intl_FOUND "@Intl_FOUND@")
set(VCPKG_DETECTED_Intl_IS_BUILT_IN "@Intl_IS_BUILT_IN@")
set(VCPKG_DETECTED_Intl_INCLUDE_DIRS "@Intl_INCLUDE_DIRS@")
set(VCPKG_DETECTED_LIBINTL_H "@LIBINTL_H@")
]] detected_intl @ONLY ESCAPE_QUOTES)
string(CONFIGURE "${message}" package_message @ONLY)
string(CONFIGURE "${message}" package_message @ONLY)
string(
CONFIGURE
[[
#include <@CXX_FILESYSTEM_HEADER@>
int main() {
auto cwd = @CXX_FILESYSTEM_NAMESPACE@::current_path();
return static_cast<int>(cwd.string().size());
}
]]
code
@ONLY)
string(CONFIGURE ${_package_footer_template} QTWEBKIT_PACKAGE_FOOTER @ONLY)
string(CONFIGURE ${_package_footer_template} QTWEBKIT_PACKAGE_FOOTER @ONLY)
string(CONFIGURE [[
#include <map>
int main()
{
std::map<int, int> id_to_name{{1, 1}, {2, 2}};
std::map<int, int> important{{5, 5}};
important.insert(id_to_name.extract(2));
}
]] code @ONLY)
string(CONFIGURE [[
#include <@CXX_FILESYSTEM_HEADER@>
#include <string>
int main() {
auto cwd = @CXX_FILESYSTEM_NAMESPACE@::current_path();
auto relative = @CXX_FILESYSTEM_NAMESPACE@::relative(cwd,cwd);
return relative.string().size();
}
]] code @ONLY)