Commit 45c5f0a5 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #10488 from alalek:cmake_simplify_configure_macro

parents f46eff4e 94b23687
......@@ -32,8 +32,8 @@ function(ocv_cmake_eval var_name)
endfunction()
macro(ocv_cmake_configure file_name var_name)
configure_file(${file_name} "${CMAKE_BINARY_DIR}/CMakeConfig-${var_name}.cmake" ${ARGN})
file(READ "${CMAKE_BINARY_DIR}/CMakeConfig-${var_name}.cmake" ${var_name})
file(READ "${file_name}" __config)
string(CONFIGURE "${__config}" ${var_name} ${ARGN})
endmacro()
macro(ocv_update VAR)
......
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