$NetBSD: patch-CMakeLists.txt,v 1.2 2025/08/18 07:34:38 wiz Exp $ Remove obsolete variable. --- CMakeLists.txt.orig 2020-05-08 15:38:02.000000000 +0000 +++ CMakeLists.txt @@ -10,9 +10,6 @@ set (CMAKE_CXX_STANDARD 11) if(COMMAND cmake_policy) cmake_policy(SET CMP0003 NEW) - if(POLICY CMP0042) - cmake_policy(SET CMP0042 OLD) - endif() endif() include (CheckCXXCompilerFlag) @@ -344,7 +341,7 @@ elseif(HAVE_STD_TR1_SHARED_PTR_IN_TR1_HE else() find_package(Boost) if(Boost_FOUND) - include_directories(${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIR}) + include_directories(${Boost_INCLUDE_DIRS}) add_definitions(-DUSE_BOOST -DHAVE_SHARED_POINTER) set(SHARED_POINTER true) else() @@ -357,7 +354,7 @@ message(STATUS "Use ${OB_SHARED_PTR_IMPL find_package(Boost COMPONENTS program_options iostreams) if(Boost_FOUND) - include_directories(${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIR}) + include_directories(${Boost_INCLUDE_DIRS}) endif() # Intel C++ Compiler @@ -472,7 +469,7 @@ endif() find_package(Boost COMPONENTS filesystem iostreams unit_test_framework) if(Boost_FOUND) - include_directories(${Boost_INCLUDE_DIRS} ${Boost_INCLUDE_DIR}) + include_directories(${Boost_INCLUDE_DIRS}) option(WITH_MAEPARSER "Build Maestro support" ON) if(BUILD_SHARED) option(WITH_COORDGEN "Build Coordgen support" ON)