Open
Description
Hi. Consider the following minimal project:
cmake_minimum_required(VERSION 3.24)
project(MyProject)
option(BUILD_WITH_VECTORIZATION_SUPPORT "Build with vectorization support" OFF)
include(FetchContent)
FetchContent_Declare(
proxsuite
GIT_REPOSITORY https://github.com/Simple-Robotics/proxsuite
GIT_TAG v0.7.2
)
FetchContent_MakeAvailable(proxsuite)
Running CMake on it fails with the following:
❯ cmake ..
-- The C compiler identification is AppleClang 16.0.0.16000026
-- The CXX compiler identification is AppleClang 16.0.0.16000026
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- JRL cmakemodules found in 'cmake/' git submodule
-- Configuring "proxsuite" (http://github.com/Simple-Robotics/proxsuite)
-- Package version (ROS package.xml): 0.7.2
-- Found PkgConfig: /opt/homebrew/bin/pkg-config (found version "2.4.3")
-- Performing Test res_-pedantic
-- Performing Test res_-pedantic - Success
-- Performing Test res_-Wno-long-long
-- Performing Test res_-Wno-long-long - Success
-- Performing Test res_-Wall
-- Performing Test res_-Wall - Success
-- Performing Test res_-Wextra
-- Performing Test res_-Wextra - Success
-- Performing Test res_-Wcast-align
-- Performing Test res_-Wcast-align - Success
-- Performing Test res_-Wcast-qual
-- Performing Test res_-Wcast-qual - Success
-- Performing Test res_-Wformat
-- Performing Test res_-Wformat - Success
-- Performing Test res_-Wwrite-strings
-- Performing Test res_-Wwrite-strings - Success
-- Performing Test res_-Wconversion
-- Performing Test res_-Wconversion - Success
-- CMAKE_BUILD_TYPE has automatically been set to Release
-- CMAKE_SYSTEM_PROCESSOR: arm64
-- [Proxsuite] Using C++ standard: 17
-- Found Git: /opt/homebrew/bin/git (found version "2.47.0")
-- Create files for AMENT (ROS 2)
-- Configuring done (17.9s)
CMake Error: INSTALL(EXPORT) given unknown export "proxsuiteTargets"
-- Generating done (0.1s)
CMake Generate step failed. Build files cannot be regenerated correctly.
I suspect that PROJECT_USE_CMAKE_EXPORT
should be set to OFF
when using ProxSuite as a subproject. But this variable isn't an option that can be configured from the parent project.
Metadata
Metadata
Assignees
Labels
No labels