Browse Source

quotes

cl-refactor
Marek Kotewicz 10 years ago
parent
commit
3128f90f77
  1. 6
      CMakeLists.txt
  2. 4
      cmake/scripts/buildinfo.cmake

6
CMakeLists.txt

@ -88,9 +88,9 @@ function(createBuildInfo)
# Generate header file containing useful build information
add_custom_target(BuildInfo.h ALL
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMAND cmake -DETH_SOURCE_DIR=${CMAKE_SOURCE_DIR} -DETH_DST_DIR=${CMAKE_BINARY_DIR}
-DETH_BUILD_TYPE=${_cmake_build_type} -DETH_BUILD_PLATFORM=${ETH_BUILD_PLATFORM}
-P ${ETH_SCRIPTS_DIR}/buildinfo.cmake
COMMAND cmake -DETH_SOURCE_DIR="${CMAKE_SOURCE_DIR}" -DETH_DST_DIR="${CMAKE_BINARY_DIR}"
-DETH_BUILD_TYPE="${_cmake_build_type}" -DETH_BUILD_PLATFORM="${ETH_BUILD_PLATFORM}"
-P "${ETH_SCRIPTS_DIR}/buildinfo.cmake"
)
include_directories(${CMAKE_CURRENT_BINARY_DIR})

4
cmake/scripts/buildinfo.cmake

@ -42,8 +42,8 @@ set(TMPFILE "${ETH_DST_DIR}/BuildInfo.h.tmp")
set(OUTFILE "${ETH_DST_DIR}/BuildInfo.h")
# create outfile if it doesn't exist
if (NOT (EXISTS ${OUTFILE}))
execute_process(COMMAND touch ${OUTFILE})
if (NOT (EXISTS "${OUTFILE}"))
execute_process(COMMAND touch "${OUTFILE}")
endif()
configure_file("${INFILE}" "${TMPFILE}")

Loading…
Cancel
Save