@@ -82,50 +82,50 @@ if(APPLE)
8282 endif ()
8383endif ()
8484
85- # OIDN
86- # oidnDenoise
87- add_executable (oidn-denoise IMPORTED )
88- set_property (TARGET oidn-denoise PROPERTY IMPORTED_LOCATION "${LUX_OIDN_DENOISE_PATH} " )
89-
90- if (WIN32 )
91- # Windows lacks rpath system, so we have to put oidnDenoise in the same
92- # folder as the dlls...
93- set (OIDN_DESTINATION "pyluxcore.libs" )
94- else ()
95- # For Macos, reminder: don't put it in pyluxcore/.dylibs, it would prevent
96- # other deps' relocation
97- set (OIDN_DESTINATION "pyluxcore.oidn" )
98- endif (WIN32 )
85+ ## OIDN
86+ ## oidnDenoise
87+ # add_executable(oidn-denoise IMPORTED)
88+ # set_property(TARGET oidn-denoise PROPERTY IMPORTED_LOCATION "${LUX_OIDN_DENOISE_PATH}")
89+
90+ # if(WIN32)
91+ ## Windows lacks rpath system, so we have to put oidnDenoise in the same
92+ ## folder as the dlls...
93+ # set(OIDN_DESTINATION "pyluxcore.libs")
94+ # else()
95+ ## For Macos, reminder: don't put it in pyluxcore/.dylibs, it would prevent
96+ ## other deps' relocation
97+ # set(OIDN_DESTINATION "pyluxcore.oidn")
98+ # endif(WIN32)
9999
100100if (LINUX )
101- set_property (
102- TARGET oidn-denoise
103- PROPERTY INSTALL_RPATH "\\\$ {ORIGIN}/../pyluxcore.libs"
104- )
101+ # set_property(
102+ # TARGET oidn-denoise
103+ # PROPERTY INSTALL_RPATH "\\\${ORIGIN}/../pyluxcore.libs"
104+ # )
105105 install (
106106 PROGRAMS "${LUX_OIDN_DEVICE_CPU} "
107107 DESTINATION "pyluxcore.libs"
108108 COMPONENT pyluxcore
109109 )
110110endif (LINUX )
111111
112- if (APPLE )
113- set_target_properties (
114- oidn-denoise PROPERTIES
115- INSTALL_RPATH "\\\$ {ORIGIN}/../pyluxcore/.pylibs"
116- BUILD_RPATH ""
117- )
118- endif (APPLE )
119-
120- INSTALL (
121- IMPORTED_RUNTIME_ARTIFACTS oidn-denoise
122- DESTINATION ${OIDN_DESTINATION}
123- PERMISSIONS
124- OWNER_WRITE OWNER_READ OWNER_EXECUTE
125- GROUP_READ GROUP_EXECUTE
126- WORLD_READ WORLD_EXECUTE
127- COMPONENT pyluxcore
128- )
112+ # if(APPLE)
113+ # set_target_properties(
114+ # oidn-denoise PROPERTIES
115+ # INSTALL_RPATH "\\\${ORIGIN}/../pyluxcore/.pylibs"
116+ # BUILD_RPATH ""
117+ # )
118+ # endif(APPLE)
119+
120+ # INSTALL(
121+ # IMPORTED_RUNTIME_ARTIFACTS oidn-denoise
122+ # DESTINATION ${OIDN_DESTINATION}
123+ # PERMISSIONS
124+ # OWNER_WRITE OWNER_READ OWNER_EXECUTE
125+ # GROUP_READ GROUP_EXECUTE
126+ # WORLD_READ WORLD_EXECUTE
127+ # COMPONENT pyluxcore
128+ # )
129129
130130
131131if (WIN32 )
@@ -139,24 +139,24 @@ if(WIN32)
139139 COMPONENT pyluxcore
140140 )
141141
142- # Delvewheel doesn't handle executables, however we need to delocate oidnDenoise.
143- # Therefore we had to let Delvewheel believe oidnDenoise is a lib, and now
144- # we have to make it an executable again...
145- message (STATUS "oidnDenoise suffix back to pyd" )
146- INSTALL (
147- CODE
148- "
149- MESSAGE(STATUS
150- \" Renaming '$<INSTALL_PREFIX >/pyluxcore.libs/oidnDenoise.exe' \
151- into '$<INSTALL_PREFIX >/pyluxcore.libs/oidnDenoise.pyd'\"
152- )
153- FILE(RENAME
154- $<INSTALL_PREFIX >/pyluxcore.libs/oidnDenoise.exe
155- $<INSTALL_PREFIX >/pyluxcore.libs/oidnDenoise.pyd
156- )
157- "
158- COMPONENT pyluxcore
159- )
142+ ## Delvewheel doesn't handle executables, however we need to delocate oidnDenoise.
143+ ## Therefore we had to let Delvewheel believe oidnDenoise is a lib, and now
144+ ## we have to make it an executable again...
145+ # message(STATUS "oidnDenoise suffix back to pyd")
146+ # INSTALL(
147+ # CODE
148+ # "
149+ # MESSAGE(STATUS
150+ # \"Renaming '$<INSTALL_PREFIX>/pyluxcore.libs/oidnDenoise.exe' \
151+ # into '$<INSTALL_PREFIX>/pyluxcore.libs/oidnDenoise.pyd'\"
152+ # )
153+ # FILE(RENAME
154+ # $<INSTALL_PREFIX>/pyluxcore.libs/oidnDenoise.exe
155+ # $<INSTALL_PREFIX>/pyluxcore.libs/oidnDenoise.pyd
156+ # )
157+ # "
158+ # COMPONENT pyluxcore
159+ # )
160160
161161endif (WIN32 )
162162
0 commit comments