← All tasks
cppmmp/pbrt-v4 #404Not a task: not reproduced

pbrt-v4 as an external lib fails to create pbrt_soa.h

envgap__mmp__pbrt-v4-404

01 / FAILURE SIGNATURE

As reported upstream

`[build] ninja: error: '../../../src/pbrt/pbrt.soa', needed by 'external/pbrt-v4/pbrt_soa.h', missing and no known rule to make it`
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
2b5837a862d7f79f4c2dd48acb2038e737b019a7
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

mmp/pbrt-v4 #404 · read the original issue
I have a relatively simple CMAKE file to add pbrt-v4 as part of a project



```cmake

cmake_minimum_required(VERSION 3.12)



set(PROJECT_NAME "pbrt-cpp")

project(${PROJECT_NAME})

set(SOURCE_FILES main.cpp)



include_directories(

  external/pbrt-v4/src/pbrt

  ${CMAKE_BINARY_DIR}/external/pbrt-v4/src/pbrt

)



set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/external/pbrt-v4/cmake)



add_definitions(-D PBRT_FLOAT_AS_DOUBLE)

add_subdirectory(external/pbrt-v4)



add_executable(${PROJECT_NAME} ${SOURCE_FILES})

target_compile_features(${PROJECT_NAME} PRIVATE cxx_std_17)



target_link_libraries(${PROJECT_NAME}

  pbrt

  pbrt::pbrt_lib # Tried with both pbrt_lib and pbrt and with and without pbrt::

)

```



The configuring part goes nicely, but immediately run into an error when I try to build:

`[build] ninja: error: '../../../src/pbrt/pbrt.soa', needed by 'external/pbrt-v4/pbrt_soa.h', missing and no known rule to make it`



I appreciate any help that I can get

Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]