Skip to content

Commit

Permalink
cmake: set XASH_SDK before it's actually used (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
Velaron committed May 21, 2022
1 parent ceebfb6 commit c5d61f8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ option(MAINUI_USE_CUSTOM_FONT_RENDER "Use custom font rendering" ON)
option(MAINUI_USE_STB "Use stb_truetype.h for rendering(*nix-only)" OFF)
option(MAINUI_FONT_SCALE "Scale fonts by height" OFF)

if(NOT XASH_SDK)
set(XASH_SDK "../")
endif()

file(GLOB MAINUI_CONTROLS_SOURCES "controls/*.cpp")
file(GLOB MAINUI_MENUS_SOURCES "menus/*.cpp" "menus/dynamic/*.cpp")
file(GLOB MAINUI_FONT_RENDER_SOURCES "font/*.cpp")
Expand Down Expand Up @@ -62,10 +66,6 @@ else()
# add_definitions(-DMY_COMPILER_SUCKS)
endif()

if(NOT XASH_SDK)
set(XASH_SDK "../")
endif()

if(XASH_SAILFISH)
add_definitions(-D__SAILFISH__)
endif()
Expand Down

0 comments on commit c5d61f8

Please sign in to comment.