Skip to content

Commit 86360f0

Browse files
committed
cmake/DaemonGame: set FORK value 1 in current scope, as it is used and only used in current scope
1 parent b0c63f7 commit 86360f0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cmake/DaemonGame.cmake

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ option(BUILD_GAME_NATIVE_DLL "Build the shared library files, mostly useful for
3838
# can be loaded by daemon with vm.[sc]game.type 2
3939
option(BUILD_GAME_NATIVE_EXE "Build native executable, which might be used for better performances by server owners" OFF)
4040

41+
include(ExternalProject)
4142
include(DaemonBuildInfo)
4243
include(DaemonPlatform)
4344

@@ -173,7 +174,7 @@ function(GAMEMODULE)
173174

174175
if (NOT FORK)
175176
if (BUILD_GAME_NACL)
176-
set(FORK 1 PARENT_SCOPE)
177+
set(FORK 1)
177178
endif()
178179

179180
if (BUILD_GAME_NATIVE_DLL)
@@ -185,7 +186,7 @@ function(GAMEMODULE)
185186
endif()
186187
endif()
187188

188-
if (FORK EQUAL 1)
189+
if (FORK EQUAL 1 AND NOT TARGET nacl-vms)
189190
if (CMAKE_GENERATOR MATCHES "Visual Studio")
190191
set(VM_GENERATOR "NMake Makefiles")
191192
else()

0 commit comments

Comments
 (0)