Skip to content

Commit 5e36259

Browse files
Fix cmake config error
Snap package config file was generated before install path was modified
1 parent 191d7dd commit 5e36259

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

CMakeLists.txt

+6-4
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,13 @@ add_dependencies(bdmclean libbdmclean)
133133
generate_rootlogon()
134134
if (${ParaView_FOUND})
135135
link_directories($ENV{ParaView_DIR}/../../paraview-5.4)
136-
target_link_libraries(biodynamo vtkPVPythonCatalyst vtkIOParallelXML
136+
target_link_libraries(biodynamo vtkPVPythonCatalyst vtkIOParallelXML
137137
vtkPVVTKExtensionsDefault vtkPVServerManagerRendering)
138138
endif()
139139

140140
# create cmake files used by external builds
141141
configure_file("cmake/UseBioDynaMo.cmake.in" "UseBioDynaMo.cmake" @ONLY)
142-
# create snapcraft config file
143-
configure_file("cmake/snapcraft.yaml.in" "snapcraft.yaml" @ONLY)
142+
144143

145144
# -------------------- build test project ------------------------------------
146145
if (test)
@@ -198,7 +197,10 @@ include(cmake/Installation.cmake)
198197
# -------------------- add targets for code style and submission checks --------
199198
include(cmake/CppStyleGuideChecks.cmake)
200199

201-
# -------------------- add target to build snap package ------------------------
200+
# -------------------- build snap package --------------------------------------
201+
# create snapcraft config file
202+
configure_file("cmake/snapcraft.yaml.in" "snapcraft.yaml" @ONLY)
203+
202204
add_custom_target(snap-package
203205
COMMAND ../cmake/build_snap_package.sh ${CMAKE_INSTALL_PREFIX}
204206
WORKING_DIRECTORY ${CMAKE_BINARY_DIR}

0 commit comments

Comments
 (0)