Skip to content

Clean strings usages in CMake.#340

Merged
bosilca merged 1 commit intoICLDisco:masterfrom
bosilca:fix/protect_string_compare
Mar 11, 2022
Merged

Clean strings usages in CMake.#340
bosilca merged 1 commit intoICLDisco:masterfrom
bosilca:fix/protect_string_compare

Conversation

@bosilca
Copy link
Copy Markdown
Contributor

@bosilca bosilca commented Mar 10, 2022

When we compare a CMake variable to a string, there is no need to pass
it as a string (aka "${}"), we can just use it directly as a named
variable.

Signed-off-by: George Bosilca bosilca@icl.utk.edu

@bosilca bosilca added the enhancement New feature or request label Mar 10, 2022
@bosilca bosilca added this to the v4.0 milestone Mar 10, 2022
@bosilca bosilca requested review from abouteiller and therault March 10, 2022 22:08
Comment thread cmake_modules/ParsecCompilerFlags.cmake Outdated
@bosilca bosilca force-pushed the fix/protect_string_compare branch from 5e30f4d to 15885e0 Compare March 11, 2022 16:57
@bosilca bosilca requested a review from devreal March 11, 2022 16:57
Comment thread parsec/parsec.c Outdated
Copy link
Copy Markdown
Contributor

@abouteiller abouteiller left a comment

Choose a reason for hiding this comment

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

There is also an instance in FindCython that got missed

Comment thread examples/Ex01_HelloWorld.jdf Outdated
Comment thread parsec/parsec.c
@bosilca bosilca force-pushed the fix/protect_string_compare branch from 15885e0 to 5a76766 Compare March 11, 2022 17:29
@bosilca bosilca force-pushed the fix/protect_string_compare branch from 5a76766 to a6f4878 Compare March 11, 2022 17:30
@bosilca bosilca requested a review from devreal March 11, 2022 17:44
When we compare a CMake variable to a string, there is no need to pass
it as a string (aka "${}"), we can just use it directly as a named
variable.

Signed-off-by: George Bosilca <bosilca@icl.utk.edu>
@bosilca bosilca force-pushed the fix/protect_string_compare branch from a6f4878 to a6edfea Compare March 11, 2022 17:46
@bosilca bosilca requested a review from abouteiller March 11, 2022 17:47
Comment thread parsec/fortran/CMakeLists.txt
@bosilca bosilca merged commit 1539616 into ICLDisco:master Mar 11, 2022
@bosilca bosilca deleted the fix/protect_string_compare branch March 11, 2022 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants