Skip to content

Commit

Permalink
Explicitly disable cygwin win32 legacy mode to avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mispencer committed Mar 20, 2014
1 parent ae150fb commit aa71966
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@
# along with YouCompleteMe. If not, see <http://www.gnu.org/licenses/>.

cmake_minimum_required( VERSION 2.8 )

# Disable CMake legacy mode for Cygwin, since the build doesn't depend on
# WIN32 being set for Cygwin, and this property being unset causes a
# warning in Cygwin.
# Remove when CMake >= 2.8.4 is required, since that implicitly sets this
set( CMAKE_LEGACY_CYGWIN_WIN32 0 )

project( YouCompleteMe )

option( UNIVERSAL "Build universal mac binary" OFF )
Expand Down

0 comments on commit aa71966

Please sign in to comment.