Skip to content

Commit 0fac8aa

Browse files
wdconincCopilot
andauthored
fix: update docs to avoid podio_MODULES_AVAILABLE
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent dfde5d6 commit 0fac8aa

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

doc/modules.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,19 +37,12 @@ The build system will verify all requirements and warn if modules cannot be enab
3737

3838
### In Downstream Projects
3939

40-
Downstream projects can detect and use podio modules:
40+
Downstream projects can link to podio in the usual way; if podio was built with `PODIO_ENABLE_CPP_MODULES=ON` and your toolchain supports modules, the installed module interfaces will be used transparently:
4141

4242
```cmake
4343
find_package(podio REQUIRED)
4444
45-
if(podio_MODULES_AVAILABLE)
46-
# Use modules
47-
target_link_libraries(myapp PRIVATE podio::podio)
48-
# Module files will be automatically found
49-
else()
50-
# Fall back to headers
51-
target_include_directories(myapp PRIVATE ${podio_INCLUDE_DIRS})
52-
endif()
45+
target_link_libraries(myapp PRIVATE podio::podio)
5346
```
5447

5548
## Using Modules in Code

0 commit comments

Comments
 (0)