Skip to content
Snippets Groups Projects
Commit 1caf190b authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

fix(project-template): for cmake 3.16 (Ubuntu 20.04)

problem was introduced with commit "imported targets for set_csa"
parent 7d85edc8
No related branches found
No related tags found
No related merge requests found
...@@ -29,18 +29,22 @@ ...@@ -29,18 +29,22 @@
if(ADAPTER STREQUAL "OPCUA") if(ADAPTER STREQUAL "OPCUA")
message("Building against the OPC UA ControlSystemAdater") message("Building against the OPC UA ControlSystemAdater")
find_package(ChimeraTK-ControlSystemAdapter-OPCUAAdapter 03.00 REQUIRED) find_package(ChimeraTK-ControlSystemAdapter-OPCUAAdapter 03.00 REQUIRED)
set_target_properties(ChimeraTK::ChimeraTK-ControlSystemAdapter-OPCUAAdapter PROPERTIES IMPORTED_GLOBAL TRUE)
add_library(ChimeraTK::SelectedAdapter ALIAS ChimeraTK::ChimeraTK-ControlSystemAdapter-OPCUAAdapter) add_library(ChimeraTK::SelectedAdapter ALIAS ChimeraTK::ChimeraTK-ControlSystemAdapter-OPCUAAdapter)
elseif(ADAPTER STREQUAL "DOOCS") elseif(ADAPTER STREQUAL "DOOCS")
message("Building against the DOOCS ControlSystemAdater") message("Building against the DOOCS ControlSystemAdater")
find_package(ChimeraTK-ControlSystemAdapter-DoocsAdapter 01.08 REQUIRED) find_package(ChimeraTK-ControlSystemAdapter-DoocsAdapter 01.08 REQUIRED)
set_target_properties(ChimeraTK::ChimeraTK-ControlSystemAdapter-DoocsAdapter PROPERTIES IMPORTED_GLOBAL TRUE)
add_library(ChimeraTK::SelectedAdapter ALIAS ChimeraTK::ChimeraTK-ControlSystemAdapter-DoocsAdapter) add_library(ChimeraTK::SelectedAdapter ALIAS ChimeraTK::ChimeraTK-ControlSystemAdapter-DoocsAdapter)
elseif(ADAPTER STREQUAL "EPICSIOC") elseif(ADAPTER STREQUAL "EPICSIOC")
message("Building against the EPICS IOC ControlSystemAdater") message("Building against the EPICS IOC ControlSystemAdater")
find_package(ChimeraTK-ControlSystemAdapter-EPICS-IOC-Adapter 02.00 REQUIRED) find_package(ChimeraTK-ControlSystemAdapter-EPICS-IOC-Adapter 02.00 REQUIRED)
set_target_properties(ChimeraTK::ChimeraTK-ControlSystemAdapter-EPICS-IOC-Adapter PROPERTIES IMPORTED_GLOBAL TRUE)
add_library(ChimeraTK::SelectedAdapter ALIAS ChimeraTK::ChimeraTK-ControlSystemAdapter-EPICS-IOC-Adapter) add_library(ChimeraTK::SelectedAdapter ALIAS ChimeraTK::ChimeraTK-ControlSystemAdapter-EPICS-IOC-Adapter)
elseif(ADAPTER STREQUAL "EPICS7IOC") elseif(ADAPTER STREQUAL "EPICS7IOC")
message("Building against the EPICS ver. 7.0 IOC ControlSystemAdater") message("Building against the EPICS ver. 7.0 IOC ControlSystemAdater")
find_package(ChimeraTK-ControlSystemAdapter-EPICS7-IOC-Adapter 02.00 REQUIRED) find_package(ChimeraTK-ControlSystemAdapter-EPICS7-IOC-Adapter 02.00 REQUIRED)
set_target_properties(ChimeraTK::ChimeraTK-ControlSystemAdapter-EPICS7-IOC-Adapter PROPERTIES IMPORTED_GLOBAL TRUE)
add_library(ChimeraTK::SelectedAdapter ALIAS ChimeraTK::ChimeraTK-ControlSystemAdapter-EPICS7-IOC-Adapter) add_library(ChimeraTK::SelectedAdapter ALIAS ChimeraTK::ChimeraTK-ControlSystemAdapter-EPICS7-IOC-Adapter)
else() else()
message(FATAL_ERROR "Please select your ControlSystemAdapter to use by passing to the cmake command line:\n" message(FATAL_ERROR "Please select your ControlSystemAdapter to use by passing to the cmake command line:\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment