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

Improve CMake files #167

Merged
merged 3 commits into from
Apr 5, 2018
Merged

Improve CMake files #167

merged 3 commits into from
Apr 5, 2018

Conversation

FloopCZ
Copy link
Contributor

@FloopCZ FloopCZ commented Apr 5, 2018

This PR improves some parts of CMake files.

  • Install Config and Target files to the location where CMake actually looks for them.
  • Make variable names from FindForge consistent with the documentation (i.e., Forge, not FORGE).

Copy link
Member

@9prady9 9prady9 left a comment

Choose a reason for hiding this comment

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

👍

@@ -40,7 +40,7 @@ endif()

# CMake files
if(NOT DEFINED FG_INSTALL_CMAKE_DIR)
set(FG_INSTALL_CMAKE_DIR "cmake" CACHE PATH "Installation path for CMake files")
set(FG_INSTALL_CMAKE_DIR "lib/cmake/Forge" CACHE PATH "Installation path for CMake files")
Copy link
Member

Choose a reason for hiding this comment

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

Just cmake works for Windows OS. I was testing this on Windows initially, thus forgot set it for *nix platforms. Can you please add a check for WIN32 and set it to cmake and leave lib/cmake/Forge for the rest.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure.

@9prady9 9prady9 merged commit f033e77 into arrayfire:master Apr 5, 2018
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.

2 participants