comparison PostgreSQL/CMakeLists.txt @ 318:4a4087a79b9b

fix dependencies between targets
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 19 Jul 2021 15:22:41 +0200
parents 1c2cd90418c9
children ae4c0c7b2254
comparison
equal deleted inserted replaced
317:be8b0ac774e2 318:4a4087a79b9b
91 add_library(OrthancPostgreSQLStorage SHARED 91 add_library(OrthancPostgreSQLStorage SHARED
92 ${STORAGE_RESOURCES} 92 ${STORAGE_RESOURCES}
93 Plugins/StoragePlugin.cpp 93 Plugins/StoragePlugin.cpp
94 ) 94 )
95 95
96 add_dependencies(FrameworkForPlugins AutogeneratedTarget)
97
96 target_link_libraries(OrthancPostgreSQLIndex FrameworkForPlugins) 98 target_link_libraries(OrthancPostgreSQLIndex FrameworkForPlugins)
97 target_link_libraries(OrthancPostgreSQLStorage FrameworkForPlugins) 99 target_link_libraries(OrthancPostgreSQLStorage FrameworkForPlugins)
98
99 add_dependencies(OrthancPostgreSQLIndex AutogeneratedTarget)
100 add_dependencies(OrthancPostgreSQLStorage AutogeneratedTarget)
101 100
102 message("Setting the version of the libraries to ${ORTHANC_PLUGIN_VERSION}") 101 message("Setting the version of the libraries to ${ORTHANC_PLUGIN_VERSION}")
103 102
104 add_definitions( 103 add_definitions(
105 -DORTHANC_PLUGIN_VERSION="${ORTHANC_PLUGIN_VERSION}" 104 -DORTHANC_PLUGIN_VERSION="${ORTHANC_PLUGIN_VERSION}"