spack/var/spack/repos/builtin/packages/wonton/fix-cmake-config-r3d.patch
2022-10-05 14:06:12 -06:00

24 lines
841 B
Diff

--- wonton-1.3.3-orig/wonton/intersect/r3d/config/r3dConfig.cmake.in 2021-03-29 03:04:15.000000000 -0600
+++ wonton-1.3.3/wonton/intersect/r3d/config/r3dConfig.cmake.in 2022-09-21 16:17:20.875412000 -0600
@@ -2,9 +2,6 @@
# R3D configuration file template
#-----------------------------------------------------------------------------
-# Compiler Definitions
-set(CMAKE_C_COMPILER @CMAKE_C_COMPILER@ CACHE FILEPATH "C Compiler used for compiling R3D")
-
# R3D installation path
set(r3d_ROOT @CMAKE_INSTALL_PREFIX@ CACHE PATH "Path to R3D installation")
@@ -22,10 +19,6 @@
cmake_policy(SET CMP0074 NEW) # find_package honors Pkg_ROOT variables
endif ()
-if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.15)
- set(CMAKE_FIND_PACKAGE_PREFER_CONFIG TRUE) # search for PkgConfig.cmake files first
-endif ()
-
#
# Import R3D targets