Browse Source

Fix buildinfo.cmake script

cl-refactor
Paweł Bylica 8 years ago
parent
commit
8e6f438642
No known key found for this signature in database GPG Key ID: 7A0C037434FE77EF
  1. 2
      cmake/scripts/buildinfo.cmake
  2. 14
      cmake/scripts/configure.cmake
  3. 18
      cmake/scripts/copydlls.cmake

2
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)

14
cmake/scripts/configure.cmake

@ -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})

18
cmake/scripts/copydlls.cmake

@ -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}")
Loading…
Cancel
Save