mdbx-build: SunOS/Solaris/OpenIndiana support, etc.

This commit is contained in:
Leonid Yuriev
2019-11-09 15:15:25 +03:00
parent 5af02290e6
commit a7e0b3ccdf
4 changed files with 20 additions and 6 deletions

View File

@@ -101,6 +101,10 @@ if(${CMAKE_SYSTEM_NAME} STREQUAL "Windows")
endif()
endif()
if(${CMAKE_SYSTEM_NAME} STREQUAL "SunOS" OR ${CMAKE_SYSTEM_NAME} STREQUAL "Solaris")
target_link_libraries(mdbx ${MDBX_LIBDEP_MODE} kstat)
endif()
set_target_properties(mdbx PROPERTIES
INTERPROCEDURAL_OPTIMIZATION $<BOOL:${INTERPROCEDURAL_OPTIMIZATION}>
C_STANDARD ${MDBX_C_STANDARD} C_STANDARD_REQUIRED ON