From ae60fb1961554df6c7d8fc81c32812a61d5da46e Mon Sep 17 00:00:00 2001 From: Luc Grosheintz Date: Wed, 30 Oct 2024 11:41:22 +0100 Subject: [PATCH] Remove ability to "find" nmodl. --- CMakeLists.txt | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f02e8fd394..3ef34aaf18 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -507,16 +507,6 @@ cpp_cc_git_submodule(CLI11 BUILD PACKAGE CLI11 REQUIRED) # ============================================================================= if(NRN_ENABLE_CORENEURON) -# ============================================================================= -# NMODL specific options -# ============================================================================= -find_package(nmodl) -if(NOT "${CORENRN_NMODL_DIR}" STREQUAL "" AND NOT nmodl_FOUND) - message(FATAL_ERROR "Cannot find NMODL in ${CORENRN_NMODL_DIR}") -endif() -if(nmodl_FOUND) - set(CORENRN_NMODL_BINARY ${nmodl_BINARY}) -else() set(NMODL_ENABLE_PYTHON_BINDINGS OFF CACHE BOOL "Enable NMODL python bindings") @@ -535,12 +525,11 @@ else() FILES ${NMODL_PROJECT_BINARY_DIR}/share/nmodl/nrnunits.lib DESTINATION share/nmodl COMPONENT nrnunits) -endif() -# set correct arguments for nmodl for cpu/gpu target -set(CORENRN_NMODL_FLAGS - "" - CACHE STRING "Extra NMODL options such as passes") + # set correct arguments for nmodl for cpu/gpu target + set(CORENRN_NMODL_FLAGS + "" + CACHE STRING "Extra NMODL options such as passes") endif()