Fix: Bug #857. Get CMake to compile with g++ instead of c++ (clang) compiler to eliminate warnings.

v0.27.3
Robin Mills 13 years ago
parent c9d9cc2d4f
commit e56fbdb12d

@ -6,9 +6,13 @@
# Redistribution and use is allowed according to the terms of the BSD license. # Redistribution and use is allowed according to the terms of the BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. # For details see the accompanying COPYING-CMAKE-SCRIPTS file.
SET(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required ##
PROJECT( exiv2 ) # Issue:#857. Use g++ instead of c++ (clang) compiler to eliminate warnings
CMAKE_MINIMUM_REQUIRED( VERSION 2.6 ) if (APPLE)
set(CMAKE_C_COMPILER gcc)
set(CMAKE_CXX_COMPILER g++)
endif(APPLE)
##
## ##
# Running cmake in a tree in which we have run ./configure ; make # Running cmake in a tree in which we have run ./configure ; make
@ -22,6 +26,11 @@ if( EXISTS ${CMAKE_SOURCE_DIR}/src/exv_conf.h )
endif() endif()
## ##
PROJECT( exiv2 )
CMAKE_MINIMUM_REQUIRED( VERSION 2.6 )
SET(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
SET( PACKAGE_COPYRIGHT "Andreas Huggel" ) SET( PACKAGE_COPYRIGHT "Andreas Huggel" )
SET( PACKAGE_BUGREPORT "ahuggel@gmx.net" ) SET( PACKAGE_BUGREPORT "ahuggel@gmx.net" )
SET( PACKAGE "exiv2" ) SET( PACKAGE "exiv2" )

Loading…
Cancel
Save