From 0b090f4c0a38b794ae57416dcbff5db14b32a335 Mon Sep 17 00:00:00 2001 From: "Ankur Sinha (Ankur Sinha Gmail)" Date: Tue, 1 Dec 2020 10:04:04 +0000 Subject: [PATCH 06/11] Do not generate version info at buildtime --- src/nrniv/CMakeLists.txt | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/src/nrniv/CMakeLists.txt b/src/nrniv/CMakeLists.txt index 3bedd62c0..13dc0f40b 100644 --- a/src/nrniv/CMakeLists.txt +++ b/src/nrniv/CMakeLists.txt @@ -204,23 +204,7 @@ set(NRN_INCLUDE_DIRS # ============================================================================= # Helper commands : generate various headers # ============================================================================= -# ~~~ -# generate version information file -# nrnversion.h does not depend on another file but on the output of -# git2version_h.sh and nrnversion.h should only be changed if that output -# is different from the contents of nrnversion.h -# ~~~ -add_custom_target( - nrnversion_h - COMMAND ${CMAKE_COMMAND} -E env PROJECT_VERSION=${PROJECT_VERSION} bash - ${PROJECT_SOURCE_DIR}/git2nrnversion_h.sh ${PROJECT_SOURCE_DIR} > nrnversion.h.tmp - COMMAND ${CMAKE_COMMAND} -E copy_if_different nrnversion.h.tmp ${NRN_NRNOC_SRC_DIR}/nrnversion.h - DEPENDS ${PROJECT_SOURCE_DIR}/git2nrnversion_h.sh) - -add_custom_command(OUTPUT ${NRN_NRNOC_SRC_DIR}/nrnversion.h DEPENDS nrnversion_h) -add_dependencies(generated_source_files nrnversion_h) - -# avoid error with nvector_serial.cpp for #include <../../../nrnconf.h> +# avoid error with nvector_serial.c for #include <../../../nrnconf.h> file(MAKE_DIRECTORY ${PROJECT_BINARY_DIR}/src/sundials/shared) # generate hocusr.h -- 2.39.1