Skip to content
Permalink
Browse files

Build - GCC

  • Loading branch information...
H0zen committed May 16, 2019
1 parent 4bd4b91 commit 3d1084a658f3d9db614fc660746a459f521f5fac
Showing with 5 additions and 1 deletion.
  1. +1 −1 cmake/PCHSupport.cmake
  2. +4 −0 src/game/CMakeLists.txt
@@ -77,7 +77,7 @@ function(ADD_CXX_PCH TARGET_NAME PRECOMPILED_HEADER PRECOMPILED_SOURCE)
endif()

# Create and set output directory.
set(OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_BUILD_TYPE}")
set(OUTPUT_DIR "${CMAKE_CURRENT_BINARY_DIR}/${TARGET_NAME}_${CMAKE_BUILD_TYPE}_${SFX}")
set(OUTPUT_NAME "${OUTPUT_DIR}/${PRECOMPILED_HEADER_NAME}.${SFX}")

make_directory(${OUTPUT_DIR})
@@ -226,6 +226,10 @@ add_library(game STATIC
${SRC_GRP_WORLD_HANDLERS}
$<$<BOOL:${SCRIPT_LIB_ELUNA}>:${SRC_GRP_ELUNA}>
$<$<BOOL:${PLAYERBOTS}>:${SRC_GRP_BOTS}>
$<$<BOOL:${PCH}>:
pchdef.h
pchdef.cpp
>
)

target_include_directories(game

0 comments on commit 3d1084a

Please sign in to comment.
You can’t perform that action at this time.