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

Special CMake environment variable to notify about GGP + VS generation #2

Open
robbiesri opened this issue Jan 29, 2020 · 0 comments
Open

Comments

@robbiesri
Copy link

For certain reasons, it's handy to know when CMake is going through the GGP + VS path. Right now, I do this:

if ((${CMAKE_GENERATOR} STREQUAL "Visual Studio 15 2017") AND GGP)
  set(GGP_VS TRUE)
  message(STATUS "Generating VS files with GGP support")
endif()

Which is fragile.

I'd rather CMake itself realize the scenario, and export some special environment variable I could key in on.

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

No branches or pull requests

1 participant