Questions tagged [cmake-export]

Anything related to creating CMake exports, export-sets and exporting components.

2 questions
0
votes
0 answers

Targets of subproject are not in any export set

I want to build my project using libwebsockets with mbedtls. I have used FetchContent_Declare() and FetchContent_GetProperties() along with add_subdirectory() to pull in the repos and now I'm stuck in the configuration phase with the following…
glades
  • 3,778
  • 1
  • 12
  • 34
0
votes
0 answers

Why do I need to specify install rules for private targets?

I'm new to CMake and have trouble understanding how targets are exposed in the install interface. I have a CMakeLists.txt where I define two targets (PROJECT_NAME is "realtime"): ... add_library(${PROJECT_NAME}…
glades
  • 3,778
  • 1
  • 12
  • 34