Add i_threads.h too

This commit is contained in:
GoldenTails 2020-10-20 15:58:34 -05:00
parent 31c410656c
commit 1e0beab254
2 changed files with 6 additions and 2 deletions

View File

@ -472,6 +472,12 @@ if(${SRB2_CONFIG_HAVE_CURL})
endif()
endif()
if(${SRB2_CONFIG_HAVE_THREADS})
set(SRB2_HAVE_THREADS ON)
set(SRB2_CORE_HEADERS ${SRB2_CORE_HEADERS} ${CMAKE_CURRENT_SOURCE_DIR}/i_threads.h)
add_definitions(-DHAVE_THREADS)
endif()
if(${SRB2_CONFIG_HWRENDER})
add_definitions(-DHWRENDER)
set(SRB2_HWRENDER_SOURCES

View File

@ -56,9 +56,7 @@ set(SRB2_SDL2_HEADERS
)
if(${SRB2_CONFIG_HAVE_THREADS})
set(SRB2_HAVE_THREADS ON)
set(SRB2_SDL2_SOURCES ${SRB2_SDL2_SOURCES} i_threads.c)
add_definitions(-DHAVE_THREADS)
endif()
source_group("Interface Code" FILES ${SRB2_SDL2_SOURCES} ${SRB2_SDL2_HEADERS})