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

CMakeLists.txt: explicitly declare LONG_OUTPUT_NAMES and DISABLE_STATIC #143

Merged
merged 1 commit into from Jul 4, 2018

Conversation

trofi
Copy link
Contributor

@trofi trofi commented Jul 3, 2018

Toralf noticed a minor infelicity in option declarations:

build $ cmake -DLONG_OUTPUT_NAMES=YES ..
CMake Warning:
  Manually-specified variables were not used by the project:

    LONG_OUTPUT_NAMES

Note, CMake complains here about "unused" LONG_OUTPUT_NAMES.
The option is used but not declares as user-tweakable via 'option()'.

This change adds declarations for variables used in Gentoo.

Reported-by: Toralf Förster
Bug: https://bugs.gentoo.org/659880
Signed-off-by: Sergei Trofimovich slyfox@gentoo.org

@DerDakon
Copy link
Contributor

DerDakon commented Jul 4, 2018

This should come after cmake_minimum_required() and additional set(POLICY) commands as they could change behavior of other commands.

Toralf noticed a minor infelicity in option declarations:
```
build $ cmake -DLONG_OUTPUT_NAMES=YES ..
CMake Warning:
  Manually-specified variables were not used by the project:

    LONG_OUTPUT_NAMES
```

Note, CMake complains here about "unused" LONG_OUTPUT_NAMES.
The option is used but not declares as user-tweakable via 'option()'.

This change adds declarations for variables used in Gentoo.

Reported-by: Toralf Förster
Bug: https://bugs.gentoo.org/659880
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
@trofi
Copy link
Contributor Author

trofi commented Jul 4, 2018

Moved option declarations below cmake_minimum_required(). I didn't see any POLICY changes in squirrel's CMakeLists.txt files. Should I be concerned about imported modules?

@albertodemichelis albertodemichelis merged commit 1eaaa4b into albertodemichelis:master Jul 4, 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.

None yet

3 participants