← All tasks
cppgoogle/googletest #1161Not a task: already works

Library install location is wrong

envgap__google__googletest-1161

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

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

03 / ORIGINAL ISSUE TEXT

google/googletest #1161 · read the original issue
There are two issues with the library install location:



- It doesn't install to the correct arch-dependent location.

- `.dll`s are not installed to `bin` (Windows-only issue).



#1160 fixes the first. For the second, just using `DESTINATION` is insufficient. The correct invocation is e.g.:



```

install(TARGETS gtest gtest_main

  RUNTIME DESTINATION bin

  LIBRARY DESTINATION lib${LIB_SUFFIX}

  ARCHIVE DESTINATION lib${LIB_SUFFIX}

)

```
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
[]