Skip to content

Commit

Permalink
Update cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
cyang-kth committed Jun 14, 2020
1 parent e925628 commit c96b553
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ if (POLICY CMP0074)
message(STATUS "Set CMP0074 state to NEW")
cmake_policy(SET CMP0074 NEW)
endif()
if (POLICY CMP0078)
message(STATUS "Set CMP0078 state to NEW")
cmake_policy(SET CMP0078 NEW)
endif()

if (POLICY CMP0086)
message(STATUS "Set CMP0086 state to NEW")
cmake_policy(SET CMP0086 NEW)
endif()

if (POLICY CMP0078)
message(STATUS "Set CMP0078 state to NEW")
cmake_policy(SET CMP0078 NEW)
endif()

# Prevent in source build
set(CMAKE_DISABLE_SOURCE_CHANGES ON)
set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
Expand Down
2 changes: 1 addition & 1 deletion python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ set_property(TARGET pyfmmlib PROPERTY POSITION_INDEPENDENT_CODE ON)
target_link_libraries(pyfmmlib ${GDAL_LIBRARIES} ${Boost_LIBRARIES}
${OSMIUM_LIBRARIES})
# Add the target.
if (${CMAKE_VERSION} VERSION_LESS 3.8.0)
if (${CMAKE_VERSION} VERSION_LESS 3.13.0)
message(STATUS "Using swig add module")
set_property(SOURCE ${PROJECT_SOURCE_DIR}/python/fmm.i
PROPERTY SWIG_MODULE_NAME fmm)
Expand Down

0 comments on commit c96b553

Please sign in to comment.