File tree Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Expand file tree Collapse file tree 1 file changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -158,14 +158,17 @@ set_target_properties(DPCTLSyclInterface
158
158
SOVERSION ${VERSION_MAJOR} .${VERSION_MINOR}
159
159
)
160
160
161
- set (linker_script1
162
- "INPUT(libDPCTLSyclInterface.so.${VERSION_MAJOR} .${VERSION_MINOR} )"
163
- )
164
- add_custom_command (TARGET DPCTLSyclInterface POST_BUILD
165
- COMMAND "${CMAKE_COMMAND} " -E remove "libDPCTLSyclInterface.so"
166
- COMMAND "${CMAKE_COMMAND} " -E echo "${linker_script1} " > "libDPCTLSyclInterface.so"
167
- VERBATIM
168
- )
161
+ if (UNIX )
162
+ set (linker_script1
163
+ "INPUT(libDPCTLSyclInterface.so.${VERSION_MAJOR} .${VERSION_MINOR} )"
164
+ )
165
+ add_custom_command (TARGET DPCTLSyclInterface POST_BUILD
166
+ COMMAND "${CMAKE_COMMAND} " -E remove "libDPCTLSyclInterface.so"
167
+ COMMAND "${CMAKE_COMMAND} "
168
+ -E echo "${linker_script1} " > "libDPCTLSyclInterface.so"
169
+ VERBATIM
170
+ )
171
+ endif ()
169
172
170
173
if (DPCTL_ENABLE_LO_PROGRAM_CREATION )
171
174
target_include_directories (DPCTLSyclInterface
You can’t perform that action at this time.
0 commit comments