Skip to content

Commit beb171e

Browse files
authored
Fixes issue with steam compile (#97)
Broken in: 8d37f6e (monster pathing) Issue located through bisect.
1 parent b1158be commit beb171e

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

CMakeLists.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,6 @@ set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DDEBUG")
182182
if (STEAM)
183183
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -DSTEAM_BUILD")
184184
set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -DSTEAM_BUILD")
185-
set(STEAM_SOURCES
186-
src/steam/steamworks_api_wrapper.c
187-
)
188-
else ()
189-
set(STEAM_SOURCES "")
190185
endif ()
191186

192187
if (MINGW)

src/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
file(GLOB SOURCE_FILES CONFIGURE_DEPENDS *.c)
2+
target_sources(${PROJECT_NAME} PRIVATE ${SOURCE_FILES})
23

34
if (STEAM)
4-
file(GLOB SOURCE_FILES CONFIGURE_DEPENDS steam/*.c)
5+
target_sources(${PROJECT_NAME} PRIVATE steam/steamworks_api_wrapper.c)
56
endif ()
6-
7-
target_sources(${PROJECT_NAME} PRIVATE ${SOURCE_FILES})

0 commit comments

Comments
 (0)