Skip to content

Commit

Permalink
Fix include of include
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Cornu committed Apr 25, 2024
1 parent 98fca63 commit 65550e9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/nrnoc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@ set_property(
PROPERTY COMPILE_OPTIONS ${NRN_EXTRA_MECH_CXX_FLAGS})
# we are basically emulating nrnivmodl with CMake here. nrnivmodl uses headers from the include
# directory in the build or install directory.
set_property(
SOURCE ${NRN_MODFILE_CPP}
APPEND
PROPERTY INCLUDE_DIRECTORIES ${PROJECT_BINARY_DIR}/include)
set_source_files_properties(${NRN_MODFILE_CPP} PROPERTIES GENERATED TRUE)

# Create a static library from mod files to be included in nrniv
add_library(default_mods STATIC ${NRN_MODFILE_CPP})
target_include_directories(default_mods PRIVATE "${PROJECT_BINARY_DIR}/include")
set_property(TARGET default_mods PROPERTY POSITION_INDEPENDENT_CODE ON)

0 comments on commit 65550e9

Please sign in to comment.