summarylogtreecommitdiffstats
path: root/fix-cmake.patch
blob: 2eba8cc20cbb64d93a706a02378eaec860ab4a07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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
 )