equal
deleted
inserted
replaced
11 string(REGEX MATCH ".([0-9]+)" sdlmixer_patchversion "${sdlmixer_patchversion_tmp}") |
11 string(REGEX MATCH ".([0-9]+)" sdlmixer_patchversion "${sdlmixer_patchversion_tmp}") |
12 math(EXPR sdlmixer_version "${sdlmixer_majorversion}*10000 + ${sdlmixer_minorversion}*100 + ${sdlmixer_patchversion}") |
12 math(EXPR sdlmixer_version "${sdlmixer_majorversion}*10000 + ${sdlmixer_minorversion}*100 + ${sdlmixer_patchversion}") |
13 |
13 |
14 if(sdlmixer_version GREATER "10209") |
14 if(sdlmixer_version GREATER "10209") |
15 message(STATUS "Mix_Init() is present") |
15 message(STATUS "Mix_Init() is present") |
16 set(pascal_flags "-dSDL_MIXER_NEWER" ${pascal_flags}) |
16 list(APPEND pascal_flags "-dSDL_MIXER_NEWER") |
17 endif() |
17 endif() |
18 endif() |
18 endif() |
19 |
19 |
20 #find which version of SDL_image we have (for IMG_Init) |
20 #find which version of SDL_image we have (for IMG_Init) |
21 find_file(sdlimage_h SDL_image.h ${SDLIMAGE_INCLUDE_DIR}) |
21 find_file(sdlimage_h SDL_image.h ${SDLIMAGE_INCLUDE_DIR}) |
28 string(REGEX MATCH ".([0-9]+)" sdlimage_patchversion "${sdlimage_patchversion_tmp}") |
28 string(REGEX MATCH ".([0-9]+)" sdlimage_patchversion "${sdlimage_patchversion_tmp}") |
29 math(EXPR sdlimage_version "${sdlimage_majorversion}*10000 + ${sdlimage_minorversion}*100 + ${sdlimage_patchversion}") |
29 math(EXPR sdlimage_version "${sdlimage_majorversion}*10000 + ${sdlimage_minorversion}*100 + ${sdlimage_patchversion}") |
30 |
30 |
31 if(sdlimage_version GREATER "010207") |
31 if(sdlimage_version GREATER "010207") |
32 message(STATUS "IMG_Init() is present") |
32 message(STATUS "IMG_Init() is present") |
33 set(pascal_flags "-dSDL_IMAGE_NEWER" ${pascal_flags}) |
33 list(APPEND pascal_flags "-dSDL_IMAGE_NEWER") |
34 endif() |
34 endif() |
35 endif() |
35 endif() |
36 |
36 |