changeset 318:4a4087a79b9b

fix dependencies between targets
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 19 Jul 2021 15:22:41 +0200
parents be8b0ac774e2
children baaa265d84f4
files MySQL/CMakeLists.txt PostgreSQL/CMakeLists.txt
diffstat 2 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/MySQL/CMakeLists.txt	Mon Jul 19 15:16:20 2021 +0200
+++ b/MySQL/CMakeLists.txt	Mon Jul 19 15:22:41 2021 +0200
@@ -90,12 +90,11 @@
   Plugins/StoragePlugin.cpp
   )
 
+add_dependencies(FrameworkForPlugins AutogeneratedTarget)
+
 target_link_libraries(OrthancMySQLIndex FrameworkForPlugins)
 target_link_libraries(OrthancMySQLStorage FrameworkForPlugins)
 
-add_dependencies(OrthancMySQLIndex AutogeneratedTarget)
-add_dependencies(OrthancMySQLStorage AutogeneratedTarget)
-
 message("Setting the version of the libraries to ${ORTHANC_PLUGIN_VERSION}")
 
 add_definitions(
--- a/PostgreSQL/CMakeLists.txt	Mon Jul 19 15:16:20 2021 +0200
+++ b/PostgreSQL/CMakeLists.txt	Mon Jul 19 15:22:41 2021 +0200
@@ -93,12 +93,11 @@
   Plugins/StoragePlugin.cpp
   )
 
+add_dependencies(FrameworkForPlugins AutogeneratedTarget)
+
 target_link_libraries(OrthancPostgreSQLIndex FrameworkForPlugins)
 target_link_libraries(OrthancPostgreSQLStorage FrameworkForPlugins)
 
-add_dependencies(OrthancPostgreSQLIndex AutogeneratedTarget)
-add_dependencies(OrthancPostgreSQLStorage AutogeneratedTarget)
-
 message("Setting the version of the libraries to ${ORTHANC_PLUGIN_VERSION}")
 
 add_definitions(