Added split for libmath on Win32

This commit is contained in:
2021-08-14 13:45:02 -07:00
parent 5cf7da5ee0
commit 42734a62c9
2 changed files with 5 additions and 3 deletions

View File

@ -22,7 +22,7 @@ set(SETTING_PLATFORM_GLFW 1)
set(SETTING_PLATFORM_SDL 2)
set(SETTING_PLATFORM SETTING_PLATFORM_SDL)
set(SETTING_USE_GLAD 0)
set(SETTING_USE_GLAD 1)
# Game Settings
set(SETTING_GAME_POKER 1)
@ -70,7 +70,9 @@ add_executable(${PROJECT_NAME} ${HEADER_FILES} ${SOURCE_FILES})
################################# STATIC LIBS ##################################
# Math
target_link_libraries(${PROJECT_NAME} m)
if(NOT WIN32)
target_link_libraries(${PROJECT_NAME} m)
endif()
# GLAD
if(${SETTING_USE_GLAD} EQUAL 1)

View File

@ -31,7 +31,6 @@
#include <stdbool.h>
#include <malloc.h>
#include <string.h>
#include <math.h>
#if defined(_WIN32) || defined(_WIN64)
// Windows Fixes
@ -39,4 +38,5 @@
# define sleep(n) _sleep(n)
#else
#include <unistd.h>
#include <math.h>
#endif