Skip to content

Commit 48128e5

Browse files
authored
Merge pull request #868 from emailweixu/fix_enable_virtualenv
Fix enable_virtualenv
2 parents bf47397 + aff8a0f commit 48128e5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cmake/util.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ function(link_paddle_exe TARGET_NAME)
119119
${RDMA_LD_FLAGS}
120120
${RDMA_LIBS})
121121
endif()
122-
122+
123123
if(WITH_PYTHON)
124124
target_link_libraries(${TARGET_NAME}
125125
${PYTHON_LIBRARIES})
@@ -136,10 +136,10 @@ function(link_paddle_exe TARGET_NAME)
136136
endif()
137137

138138
if(WITH_GPU)
139-
if(NOT WITH_DSO OR WITH_METRIC)
139+
if(NOT WITH_DSO OR WITH_METRIC)
140140
target_link_libraries(${TARGET_NAME}
141141
${CUDNN_LIBRARY}
142-
${CUDA_curand_LIBRARY})
142+
${CUDA_curand_LIBRARY})
143143
CUDA_ADD_CUBLAS_TO_TARGET(${TARGET_NAME})
144144
endif()
145145

@@ -206,5 +206,5 @@ function(create_resources res_file output)
206206
# Convert hex data for C compatibility
207207
string(REGEX REPLACE "([0-9a-f][0-9a-f])" "0x\\1," filedata ${filedata})
208208
# Append data to output file
209-
file(APPEND ${output} "const unsigned char ${filename}[] = {${filedata}};\nconst unsigned ${filename}_size = sizeof(${filename});\n")
209+
file(APPEND ${output} "const unsigned char ${filename}[] = {${filedata}0};\nconst unsigned ${filename}_size = sizeof(${filename});\n")
210210
endfunction()

0 commit comments

Comments
 (0)