cmake/sdlchecks.cmake
changeset 9415 93547cc94383
parent 9414 669bf9fb901e
child 9718 d5955671f259
equal deleted inserted replaced
9414:669bf9fb901e 9415:93547cc94383
   834       check_c_source_compiles("
   834       check_c_source_compiles("
   835           #include <pthread.h>
   835           #include <pthread.h>
   836           #include <pthread_np.h>
   836           #include <pthread_np.h>
   837           int main(int argc, char** argv) { return 0; }" HAVE_PTHREAD_NP_H)
   837           int main(int argc, char** argv) { return 0; }" HAVE_PTHREAD_NP_H)
   838       check_function_exists(pthread_setname_np HAVE_PTHREAD_SETNAME_NP)
   838       check_function_exists(pthread_setname_np HAVE_PTHREAD_SETNAME_NP)
   839       check_function_exists(pthread_set_name_np HAVE_PTHREAD_SET_NAME_NP)      set(CMAKE_REQUIRED_FLAGS)
   839       check_function_exists(pthread_set_name_np HAVE_PTHREAD_SET_NAME_NP)
       
   840       set(CMAKE_REQUIRED_FLAGS)
   840 
   841 
   841       set(SOURCE_FILES ${SOURCE_FILES}
   842       set(SOURCE_FILES ${SOURCE_FILES}
   842           ${SDL2_SOURCE_DIR}/src/thread/pthread/SDL_systhread.c
   843           ${SDL2_SOURCE_DIR}/src/thread/pthread/SDL_systhread.c
   843           ${SDL2_SOURCE_DIR}/src/thread/pthread/SDL_sysmutex.c   # Can be faked, if necessary
   844           ${SDL2_SOURCE_DIR}/src/thread/pthread/SDL_sysmutex.c   # Can be faked, if necessary
   844           ${SDL2_SOURCE_DIR}/src/thread/pthread/SDL_syscond.c    # Can be faked, if necessary
   845           ${SDL2_SOURCE_DIR}/src/thread/pthread/SDL_syscond.c    # Can be faked, if necessary