diff --git a/cmake/scripts/buildinfo.cmake b/cmake/scripts/buildinfo.cmake index 71442b41c..dc889290e 100644 --- a/cmake/scripts/buildinfo.cmake +++ b/cmake/scripts/buildinfo.cmake @@ -23,7 +23,7 @@ set(OUTFILE "${ETH_DST_DIR}/BuildInfo.h") configure_file("${INFILE}" "${TMPFILE}") - +include(CMakeParseArguments) macro(replace_if_different SOURCE DST) set(extra_macro_args ${ARGN}) set(options CREATE) diff --git a/cmake/scripts/configure.cmake b/cmake/scripts/configure.cmake deleted file mode 100644 index 76fb7b757..000000000 --- a/cmake/scripts/configure.cmake +++ /dev/null @@ -1,14 +0,0 @@ -# adds possibility to run configure_file as buildstep -# reference: -# http://www.cmake.org/pipermail/cmake/2012-May/050227.html -# -# This module expects -# INFILE -# OUTFILE -# other custom vars -# -# example usage: -# cmake -DINFILE=blah.in -DOUTFILE=blah.out -Dvar1=value1 -Dvar2=value2 -P scripts/configure.cmake - -configure_file(${INFILE} ${OUTFILE}) - diff --git a/cmake/scripts/copydlls.cmake b/cmake/scripts/copydlls.cmake deleted file mode 100644 index 3bc1242f3..000000000 --- a/cmake/scripts/copydlls.cmake +++ /dev/null @@ -1,18 +0,0 @@ -# this module expects -# DLLS -# CONF -# DESTINATION - -# example usage: -# cmake -DDLL_DEBUG=xd.dll -DDLL_RELEASE=x.dll -DCONFIGURATION=Release -DDESTINATION=dest -P scripts/copydlls.cmake - -# this script is created cause we do not know configuration in multiconfiguration generators at cmake configure phase ;) - -if ("${CONF}" STREQUAL "Debug") - set(DLL ${DLL_DEBUG}) -else () - set(DLL ${DLL_RELEASE}) -endif() - -execute_process(COMMAND ${CMAKE_COMMAND} -E copy "${DLL}" "${DESTINATION}") -