+ use .dylib for normal shared libraries under MacOSX
This commit is contained in:
parent
943ded5774
commit
59e45e0ae9
|
@ -822,10 +822,6 @@ IF(MINGW)
|
|||
# SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -static-libgcc -static-libstdc++")
|
||||
LINK_LIBRARIES(-lgdi32)
|
||||
ENDIF(MINGW)
|
||||
# 0000661: cmake build on Mac OS: dealing with dylib versus so
|
||||
IF(APPLE)
|
||||
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".so")
|
||||
ENDIF(APPLE)
|
||||
|
||||
# force build directory to be different to source directory
|
||||
#if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
|
||||
|
|
|
@ -251,5 +251,8 @@ MACRO(SET_PYTHON_PREFIX_SUFFIX ProjectName)
|
|||
|
||||
if(WIN32)
|
||||
set_target_properties(${ProjectName} PROPERTIES SUFFIX ".pyd")
|
||||
# 0000661: cmake build on Mac OS: dealing with dylib versus so
|
||||
elseif(APPLE)
|
||||
set_target_properties(${ProjectName} PROPERTIES SUFFIX ".so")
|
||||
endif(WIN32)
|
||||
ENDMACRO(SET_PYTHON_PREFIX_SUFFIX)
|
||||
|
|
Loading…
Reference in New Issue
Block a user