Skip to content
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

Modified Makefile for CLion integration #49

Closed
wants to merge 1 commit into from

Conversation

shustinm
Copy link
Contributor

No description provided.

@shustinm
Copy link
Contributor Author

Closing this because this PR is not needed, It's not necessary to change the Makefile to accomodate CLion support on mac. The Makefile already has a CXXFLAGS_EXTRA parameter to cover for all needed additions.

For me, CLion worked best out of all IDEs that I tried, I configured this project as a "Makefile project" in CLion, and here are the parameters I use in the configuration in CLion Settings -> Build, Execution, Deployment -> Makefile -> Arguments:

CXXFLAGS_EXTRA="-I /opt/homebrew/include -I $PATH-TO-LIBAIO-ROOT/src" 
S3_SUPPORT=1 
AWS_INCLUDE_DIR=$PATH-TO-COMPILED-AWS-SDK/include 
AWS_LIB_DIR=$PATH-TO-COMPILED-AWS-SDK/lib

Explanation:

  • /opt/homebrew/include - for boost. Make sure to brew install boost
  • Since I'm not compiling, and it's only for autocompletion, I just cloned the libaio source and added an include to it's source files
  • As for AWS C++ SDK, clone it follow their instructions to compile. Here's the configuration I used: cmake .. -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="~/Developer/aws-sdk" -DBUILD_ONLY="s3;transfer" -DAUTORUN_UNIT_TESTS=OFF

@shustinm shustinm closed this May 16, 2024
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.

None yet

1 participant