Skip to content

Commit

Permalink
fix(cmake): Update Boost part to avoid warnings and update minimal ve…
Browse files Browse the repository at this point in the history
…rsion
  • Loading branch information
lbartoletti committed Sep 14, 2024
1 parent 3a49384 commit 516db4d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required( VERSION 2.8 )
cmake_minimum_required( VERSION 3.6 )
project( SFCGAL )

set( CMAKE_DEBUG_POSTFIX "d" )
Expand All @@ -15,6 +15,10 @@ if(POLICY CMP0077)
cmake_policy(SET CMP0077 NEW)
endif()

if(POLICY CMP0167)
cmake_policy(SET CMP0167 NEW)
endif()

#----------------------------------------------------------------------------
# build options
#----------------------------------------------------------------------------
Expand Down Expand Up @@ -80,6 +84,10 @@ include_directories( ${CMAKE_BINARY_DIR}/include )

#-- BOOST --------------------------------------------------
option( Boost_USE_AUTO_LINK "boost use autolink" OFF )
set(Boost_USE_DEBUG_RUNTIME OFF)
set(Boost_USE_STATIC_LIBS OFF)
option( Boost_USE_DEBUG_RUNTIME "Use Boost debug runtime" OFF )

if( NOT ${Boost_USE_AUTO_LINK} )
add_definitions( "-DBOOST_ALL_NO_LIB" )
endif()
Expand Down

0 comments on commit 516db4d

Please sign in to comment.