This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP] Install ompt-multiplex.h alongside omp.h
ClosedPublic

Authored by serge-sans-paille on Sep 7 2022, 5:53 AM.

Details

Summary

The default install direction may not be in the compiler search path.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptSep 7 2022, 5:53 AM
serge-sans-paille requested review of this revision.Sep 7 2022, 5:53 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 7 2022, 5:53 AM

Without testing, I would say the variable is not visible in this CMake scope, as it is defined in openmp/runtime/src/CMakeLists.txt. I would assume that you need to set it with PARENT_SCOPE in openmp/runtime/src/CMakeLists.txt and openmp/runtime/CMakeLists.txt. Similar to LIBOMP_LIBRARY_DIR or LIBOMP_INCLUDE_DIR.

Indeed! Didn't use the PARENT_SCOPE option because the two directories only have root as common parent directory though.

This revision is now accepted and ready to land.Sep 7 2022, 11:03 AM