Skip to content

Fix build configs of mutli-config cmake generators #2736

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 2 commits into from
Feb 2, 2020

Conversation

9prady9
Copy link
Member

@9prady9 9prady9 commented Jan 31, 2020

All upstream projects will use Release config on single config
cmake generators if the value of CMAKE_BUILD_TYPE is either Release
or RelWithDebInfo. In every other scenario, it will just use the
existing value of CMAKE_BUILD_TYPE variable.

Note: With current cmake min version as 3.5, which doesn't have ternary
generator expression, setting the build type using generator expressions
turned out to be too clumsy and cumbersone set of lines. Hence, used
simple if-else code-block.

@9prady9 9prady9 requested a review from umar456 January 31, 2020 09:43
@9prady9 9prady9 force-pushed the win_cmake_config_fix branch 2 times, most recently from c05086b to 09adfd2 Compare January 31, 2020 16:02
umar456
umar456 previously approved these changes Jan 31, 2020
@9prady9 9prady9 force-pushed the win_cmake_config_fix branch 2 times, most recently from 4930230 to f64f7c0 Compare February 1, 2020 06:51
All upstream projects will use `Release` config on single config
cmake generators if the value of CMAKE_BUILD_TYPE is either Release
or RelWithDebInfo. In every other scenario, it will just use the
existing value of CMAKE_BUILD_TYPE variable.

Note: With current cmake min version as 3.5, which doesn't have ternary
generator expression, setting the build type using generator expressions
turned out to be too clumsy and cumbersone set of lines. Hence, used
simple if-else code-block.
The default build type now is Release
@9prady9 9prady9 force-pushed the win_cmake_config_fix branch from f64f7c0 to 5f71ab9 Compare February 1, 2020 06:55
@umar456 umar456 merged commit bf997ff into arrayfire:master Feb 2, 2020
@9prady9 9prady9 deleted the win_cmake_config_fix branch February 10, 2020 05:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants