Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[MacOS][Build][OpenMP] Add OpenMP_ROOT to CMakeLists #1427

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 8, 2024

Conversation

badumbatish
Copy link
Contributor

This helps create an easier and more robust build for beginners, fixes #1355

Copy link
Collaborator

@fodinabor fodinabor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for looking into this!

- src/runtime/CMakeLists.txt: Add a check for APPLE before finding
	OpenMP
- .github/workflows/macos.yml: Remove OMP_ROOT environment variable
	to verify correctness
- CMakeLists.txt: Remove old check for APPLE in main CMakeLists.txt
@badumbatish
Copy link
Contributor Author

It seems that automation of build/ is good but failed on actual linkage, maybe we didn't actually define an include path that is based on OpenMP_ROOT inside of CMakeLists.txt, do you want me to add that directly to CXXFlags just as the yml is doing?

@badumbatish
Copy link
Contributor Author

hmm i see the problem now, I don't think the CMakeLists.txt in tests/ gets any information about the OpenMP_ROOT variable in CMakeLists.txt in runtime/

@badumbatish
Copy link
Contributor Author

badumbatish commented Apr 7, 2024

This should run fine now on github actions, I just want to make sure there's a way to actually use another variables like OPENMP_MACOS_INCLUDE_DIR instead of coupling the thing into CMakeLists.txt just like the yml.

I've refactored the appending of CMAKE_CXX_FLAGS into different target_include_dir of different targets in tests/ now.

I'd love some feedbacks @fodinabor

@illuhad
Copy link
Collaborator

illuhad commented May 2, 2024

@fodinabor Do you still have some concerns?

Copy link
Collaborator

@fodinabor fodinabor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good now!
Thanks, and sorry for not responding earlier, didn't really monitor Github due to too many other things happening.

@badumbatish
Copy link
Contributor Author

No worries! I'm just happy every build passes now :)

@illuhad illuhad merged commit a08405f into AdaptiveCpp:develop May 8, 2024
26 checks passed
@badumbatish badumbatish deleted the macos_openmp_include branch May 9, 2024 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[MacOS] [OpenMP] openmp include path should be in default cxx flags
3 participants