- workaround for https://bitbucket.org/fathomteam/moab/issues/148/530-cmake-error-at-cmake_installcmake-68 --- CMakeLists.txt.orig 2021-11-12 00:54:52 UTC +++ CMakeLists.txt @@ -618,7 +618,7 @@ endif(CLANG_TIDY_EXE) CONFIGURE_FILE(config/MOABConfig.cmake.h.in "${PROJECT_BINARY_DIR}/src/moab/MOABConfig.h" @ONLY) CONFIGURE_FILE(config/MOABConfig.cmake.cmake "${PROJECT_BINARY_DIR}/MOABConfig.cmake" @ONLY) -CONFIGURE_FILE(moab.make.cmake "${PROJECT_BINARY_DIR}/lib/moab.make" @ONLY) +CONFIGURE_FILE(moab.make.cmake "lib/moab.make" @ONLY) if ( MOAB_HAVE_FBIGEOM ) CONFIGURE_FILE(itaps/fbigeom/FBiGeom-Defs.inc.in "${PROJECT_BINARY_DIR}/lib/FBiGeom-Defs.inc" @ONLY) install( @@ -636,23 +636,23 @@ if ( MOAB_HAVE_IMESH ) endif ( MOAB_HAVE_IMESH ) INSTALL( FILES "${PROJECT_BINARY_DIR}/lib/moab.make" - DESTINATION ${CMAKE_INSTALL_LIBDIR} + DESTINATION lib ) INSTALL( CODE - "file(APPEND ${CMAKE_INSTALL_FULL_LIBDIR}/moab.make MOAB_LIBDIR=${CMAKE_INSTALL_FULL_LIBDIR}\\n )" + "file(APPEND ${FREEBSD_STAGEDIR}${CMAKE_INSTALL_FULL_LIBDIR}/moab.make MOAB_LIBDIR=${CMAKE_INSTALL_FULL_LIBDIR}\\n )" ) INSTALL( CODE - "file(APPEND ${CMAKE_INSTALL_FULL_LIBDIR}/moab.make MOAB_INCLUDES=-I${CMAKE_INSTALL_FULL_INCLUDEDIR}\\n )" + "file(APPEND ${FREEBSD_STAGEDIR}${CMAKE_INSTALL_FULL_LIBDIR}/moab.make MOAB_INCLUDES=-I${CMAKE_INSTALL_FULL_INCLUDEDIR}\\n )" ) INSTALL( FILES "${PROJECT_BINARY_DIR}/MOABConfig.cmake" - DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/MOAB/ + DESTINATION lib/cmake/MOAB/ ) INSTALL( FILES "${PROJECT_SOURCE_DIR}/config/ResolveCompilerPaths.cmake" - DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/MOAB + DESTINATION lib/cmake/MOAB ) ADD_CUSTOM_TARGET(