Skip to content

Commit

Permalink
CMake: add SOURCESDK_LINK_TIER0
Browse files Browse the repository at this point in the history
Wend4r committed Sep 14, 2024
1 parent 9870a62 commit 62e10c7
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -28,8 +28,9 @@ set(THIRDPARTY_DIR "thirdparty")
set(PROTOBUF_DIR "${THIRDPARTY_DIR}/protobuf")
set(SOURCESDK_DIR "${CMAKE_CURRENT_SOURCE_DIR}")

option(SOURCESDK_MALLOC_OVERRIDE "Valve memory system" OFF)
option(SOURCESDK_CREATE_INTEFACE_OVERRIDE "Enable it if you are using your own CreateInteface" OFF)
option(SOURCESDK_LINK_TIER0 "Link with tier0" ON)
option(SOURCESDK_MALLOC_OVERRIDE "Valve memory system" OFF)

set(SOURCESDK_PROTO_DIRS
common
4 changes: 3 additions & 1 deletion cmake/sourcesdk/targets/tier0.cmake
Original file line number Diff line number Diff line change
@@ -8,4 +8,6 @@ list(APPEND SOURCESDK_INCLUDE_DIRS
${SOURCESDK_PUBLIC_TIER0_INCLUDE_DIR}
)

append_sourcesdk_shared_library(SOURCESDK_LINK_LIBRARIES tier0)
if(SOURCESDK_LINK_TIER0)
append_sourcesdk_shared_library(SOURCESDK_LINK_LIBRARIES tier0)
endif()

0 comments on commit 62e10c7

Please sign in to comment.