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

Commit edbf5eb

Browse files
Omar Awilepramodk
authored andcommitted
Make scopmath a depdendency for coreneuron (#204)
- 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 cb56a28 commit edbf5eb

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
@@ -182,13 +182,14 @@ set_target_properties(coreneuron corenrnmech scopmath
182182
# create special-core with halfgap.mod for tests
183183
# =============================================================================
184184
add_custom_command(TARGET coreneuron
185+
POST_BUILD
185186
COMMAND ${CMAKE_BINARY_DIR}/bin/nrnivmodl-core -i
186187
-I${CORENEURON_PROJECT_SOURCE_DIR}
187188
${CORENEURON_PROJECT_SOURCE_DIR}/tests/integration/ring_gap/mod
188-
DEPENDS coreneuron
189189
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/bin
190190
BYPRODUCTS ${CMAKE_BINARY_DIR}/bin/${CMAKE_SYSTEM_PROCESSOR}/special-core
191191
COMMENT "Running nrnivmodl-core with halfgap.mod")
192+
add_dependencies(coreneuron scopmath)
192193

193194
# =============================================================================
194195
# Extract link definitions to be used with nrnivmodl-core

0 commit comments

Comments
 (0)