Skip to content

Commit 03639d1

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 03639d1

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

cmake/DaemonGame.cmake

Lines changed: 7 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(NACL_VMS ON)
177178
endif()
178179

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

188-
if (FORK EQUAL 1)
189+
if (NACL_VMS)
190+
if (TARGET nacl-vms)
191+
return()
192+
endif()
193+
189194
if (CMAKE_GENERATOR MATCHES "Visual Studio")
190195
set(VM_GENERATOR "NMake Makefiles")
191196
else()

0 commit comments

Comments
 (0)