summarylogtreecommitdiffstats
path: root/fix-cmake.patch
diff options
context:
space:
mode:
Diffstat (limited to 'fix-cmake.patch')
-rw-r--r--fix-cmake.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/fix-cmake.patch b/fix-cmake.patch
new file mode 100644
index 000000000000..2eba8cc20cbb
--- /dev/null
+++ b/fix-cmake.patch
@@ -0,0 +1,16 @@
+--- CMakeLists.txt
++++ CMakeLists.txt
+@@ -130,13 +130,6 @@
+ target_link_libraries(libradiance ${radiance_LIBRARIES})
+ target_link_libraries(radiance libradiance ${radiance_LIBRARIES})
+
+-install(CODE "
+- if(NOT \"${RADIANCE_SYSTEM_RESOURCES}\" STREQUAL \"${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/\")
+- MESSAGE(\"For an install to work, RADIANCE_SYSTEM_RESOURCES must be set to '\\\${CMAKE_INSTALL_PREFIX}share/${PROJECT_NAME}/'\")
+- MESSAGE(FATAL_ERROR \"Please recompile with cmake -DRADIANCE_SYSTEM_RESOURCES=${CMAKE_INSTALL_PREFIX}/share/${PROJECT_NAME}/\")
+- endif()
+-")
+-
+ INSTALL(TARGETS radiance
+ DESTINATION bin
+ )