mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 04:24:37 +03:00
Added librt dependency on Linux by default.
This commit is contained in:
@@ -127,11 +127,16 @@ If(ASMJIT_STATIC)
|
||||
List(APPEND ASMJIT_CFLAGS "${ASMJIT_DEFINE}ASMJIT_STATIC")
|
||||
EndIf()
|
||||
|
||||
# Dependencies - Base.
|
||||
# Dependencies - pthread (Unix).
|
||||
If(NOT WIN32)
|
||||
List(APPEND ASMJIT_DEPS pthread)
|
||||
EndIf()
|
||||
|
||||
# Dependencies - librt (Linux).
|
||||
IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
LIST(APPEND ASMJIT_DEPS rt)
|
||||
ENDIF()
|
||||
|
||||
Set(ASMJIT_CFLAGS_DBG ${ASMJIT_CFLAGS} ${ASMJIT_CFLAGS_DBG})
|
||||
Set(ASMJIT_CFLAGS_REL ${ASMJIT_CFLAGS} ${ASMJIT_CFLAGS_REL})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user