diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e44788ce..3cf81f698 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,7 +127,7 @@ endif() if(SLS_EXT_BUILD) # Find ourself in case of external build - find_package(slsDetectorPackage 6 REQUIRED) + find_package(slsDetectorPackage ${PROJECT_VERSION} REQUIRED) endif()