Skip to content

Commit c722c8c

Browse files
committed
Workaround for CMake ninja build
1 parent e2047a3 commit c722c8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ function(build_pybundle name)
3030
endif (BUNDLE_FAT)
3131

3232
set_property(TARGET "${full_name}" APPEND_STRING PROPERTY LINK_FLAGS " -Wl,-flat_namespace -Wl,-undefined,suppress ")
33-
set_target_properties("${full_name}" PROPERTIES OUTPUT_NAME "${name}" PREFIX "" SUFFIX ".so")
3433

3534
target_link_libraries("${full_name}" system)
3635
install(TARGETS "${full_name}" DESTINATION "${BUNDLE_DESTINATION}")
36+
install(CODE "execute_process(COMMAND mv ${full_name} ${name}.so WORKING_DIRECTORY ${BUNDLE_DESTINATION})")
3737
endfunction(build_pybundle)
3838

3939
add_subdirectory(Modules/six-1.4.1/six-1.4.1)

0 commit comments

Comments
 (0)