Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit a756f14

Browse files
author
Omar Awile
committed
Make scopmath a depdendency for coreneuron
- Fixed the add_custom_command call - Added scopmath as a dependency to coreneuron as it is needed for the custom command to succeed (it links with scopmath down the line).
1 parent 1fe45cd commit a756f14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coreneuron/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,14 @@ set_target_properties(coreneuron corenrnmech scopmath
179179
# create special-core with halfgap.mod for tests
180180
# =============================================================================
181181
add_custom_command(TARGET coreneuron
182+
POST_BUILD
182183
COMMAND ${CMAKE_BINARY_DIR}/bin/nrnivmodl-core -i
183184
-I${CORENEURON_PROJECT_SOURCE_DIR}
184185
${CORENEURON_PROJECT_SOURCE_DIR}/tests/integration/ring_gap/mod
185-
DEPENDS coreneuron
186186
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin
187187
BYPRODUCTS ${CMAKE_BINARY_DIR}/bin/${CMAKE_SYSTEM_PROCESSOR}/special-core
188188
COMMENT "Running nrnivmodl-core with halfgap.mod")
189+
add_dependencies(coreneuron scopmath)
189190

190191
# =============================================================================
191192
# Extract link definitions to be used with nrnivmodl-core

0 commit comments

Comments
 (0)