diff --git a/examples/hello_world_loader/CMakeLists.txt b/examples/hello_world_loader/CMakeLists.txt index 5ddae3392..9805f34f3 100644 --- a/examples/hello_world_loader/CMakeLists.txt +++ b/examples/hello_world_loader/CMakeLists.txt @@ -2,11 +2,11 @@ cmake_minimum_required(VERSION 3.5 FATAL_ERROR) project(ign-physics-hello-world-loader) -set(IGN_PLUGIN_VER 1) -find_package(ignition-plugin${IGN_PLUGIN_VER} 1.1 REQUIRED COMPONENTS all) +find_package(ignition-plugin1 1.1 REQUIRED COMPONENTS all) +set(IGN_PLUGIN_VER ${ignition-plugin1_VERSION_MAJOR}) -set(IGN_PHYSICS_VER 6) -find_package(ignition-physics${IGN_PHYSICS_VER} REQUIRED) +find_package(ignition-physics6 REQUIRED) +set(IGN_PHYSICS_VER ${ignition-physics6_VERSION_MAJOR}) add_executable(hello_world_loader hello_world_loader.cc) target_link_libraries(hello_world_loader diff --git a/examples/hello_world_plugin/CMakeLists.txt b/examples/hello_world_plugin/CMakeLists.txt index 6bd696d70..1f3537f69 100644 --- a/examples/hello_world_plugin/CMakeLists.txt +++ b/examples/hello_world_plugin/CMakeLists.txt @@ -2,11 +2,11 @@ cmake_minimum_required(VERSION 3.5 FATAL_ERROR) project(ign-physics-hello-world-plugin) -set(IGN_PLUGIN_VER 1) -find_package(ignition-plugin${IGN_PLUGIN_VER} 1.1 REQUIRED COMPONENTS all) +find_package(ignition-plugin1 1.1 REQUIRED COMPONENTS all) +set(IGN_PLUGIN_VER ${ignition-plugin1_VERSION_MAJOR}) -set(IGN_PHYSICS_VER 6) -find_package(ignition-physics${IGN_PHYSICS_VER} REQUIRED) +find_package(ignition-physics6 REQUIRED) +set(IGN_PHYSICS_VER ${ignition-physics6_VERSION_MAJOR}) add_library(HelloWorldPlugin SHARED HelloWorldPlugin.cc) target_link_libraries(HelloWorldPlugin diff --git a/examples/simple_plugin/CMakeLists.txt b/examples/simple_plugin/CMakeLists.txt index 98212cc27..2470da9f2 100644 --- a/examples/simple_plugin/CMakeLists.txt +++ b/examples/simple_plugin/CMakeLists.txt @@ -2,11 +2,11 @@ cmake_minimum_required(VERSION 3.5 FATAL_ERROR) project(ign-physics-simple-plugin) -set(IGN_PLUGIN_VER 1) -find_package(ignition-plugin${IGN_PLUGIN_VER} 1.1 REQUIRED COMPONENTS all) +find_package(ignition-plugin1 1.1 REQUIRED COMPONENTS all) +set(IGN_PLUGIN_VER ${ignition-plugin1_VERSION_MAJOR}) -set(IGN_PHYSICS_VER 6) -find_package(ignition-physics${IGN_PHYSICS_VER} REQUIRED) +find_package(ignition-physics6 REQUIRED) +set(IGN_PHYSICS_VER ${ignition-physics6_VERSION_MAJOR}) add_library(SimplePlugin SHARED plugin.cc EntityManagementFeatures.cc) target_link_libraries(SimplePlugin