Skip to content

Commit

Permalink
Fix linker errors
Browse files Browse the repository at this point in the history
  • Loading branch information
geneotech committed Oct 29, 2023
1 parent 7cb6e78 commit 786991f
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,17 @@ if(BUILD_TEST_SCENES)
message("Building of test scenes is enabled.")
endif()

include_directories(${PROJECT_SOURCE_DIR}/cmake/steam_integration)

if(NOT LINK_STEAM_INTEGRATION)
message("Steam integration will NOT be linked. Building stubs directly.")
## Build stubs

list(APPEND HYPERSOMNIA_CODEBASE_CPPS
"cmake/steam_integration/steam_integration.cpp"
)
endif()

# natvis files for easier debugging in Visual Studio.

if(MSVC_SPECIFIC)
Expand Down Expand Up @@ -1639,13 +1650,6 @@ if(LINK_STEAM_INTEGRATION)
message("STEAM_INTEGRATION_LIBRARY: ${STEAM_INTEGRATION_LIBRARY}")

target_link_libraries(Hypersomnia ${STEAM_INTEGRATION_LIBRARY})
else()
message("Steam integration will NOT be linked. Building stubs directly.")
## Build stubs

list(APPEND HYPERSOMNIA_CODEBASE_CPPS
"cmake/steam_integration/steam_integration.cpp"
)
endif()

if(BUILD_OPENGL)
Expand Down

0 comments on commit 786991f

Please sign in to comment.