Skip to content
Snippets Groups Projects
Commit 1e0beab2 authored by Golden's avatar Golden
Browse files

Add i_threads.h too

parent 31c41065
No related branches found
No related tags found
1 merge request!1204Add multithreading option for CMake
......@@ -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
......
......@@ -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})
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment