Skip to content

Instantly share code, notes, and snippets.

@agirault
Created October 11, 2013 13:58
Show Gist options
  • Save agirault/6935072 to your computer and use it in GitHub Desktop.
Save agirault/6935072 to your computer and use it in GitHub Desktop.
# Compute -G arg for configuring external projects with the same CMake generator:
if(CMAKE_EXTRA_GENERATOR)
set(gen "${CMAKE_EXTRA_GENERATOR} - ${CMAKE_GENERATOR}")
else()
set(gen "${CMAKE_GENERATOR}")
endif()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment