Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Fix cmake policy CMP0077. Fixes #185
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti authored and Hugo Mercier committed Apr 24, 2020
1 parent a9dd7e5 commit 02b9e0a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ project( SFCGAL )

set( CMAKE_DEBUG_POSTFIX "d" )

#
# Cmake policies
#
if(POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif()

#----------------------------------------------------------------------------
# build options
#----------------------------------------------------------------------------
Expand Down Expand Up @@ -33,8 +40,6 @@ set( SFCGAL_VERSION "${SFCGAL_VERSION_MAJOR}.${SFCGAL_VERSION_MINOR}.${SFCGAL_VE
#include( PrecompiledHeader )
#option( Use_precompiled_headers "Use precompiled headers" OFF )

include( Libtoolize )

if (CMAKE_CXX_COMPILER MATCHES ".*clang")
set(CMAKE_COMPILER_IS_CLANGXX 1)
endif ()
Expand Down Expand Up @@ -216,9 +221,6 @@ add_subdirectory( doc )
install(DIRECTORY ${CMAKE_BINARY_DIR}/include DESTINATION .)


#-- create a libtool file for SFCGAL (needed by PostGIS)
create_libtool_file( SFCGAL )

#-- sfcgal-config
if ( "${CMAKE_BUILD_TYPE}" STREQUAL "Debug" )
set( SFCGAL_LIB_NAME "SFCGAL${CMAKE_DEBUG_POSTFIX}" )
Expand Down

0 comments on commit 02b9e0a

Please # to comment.