Skip to content

Commit 1d5d008

Browse files
committed
Set minimum policy
1 parent bbf552e commit 1d5d008

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

emcmake.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ def has_substr(args, substr):
4343
# See https://github.com/emscripten-core/emscripten/issues/15522
4444
args.append(f'-DCMAKE_CROSSCOMPILING_EMULATOR={node_js}')
4545

46+
args.append('-DCMAKE_POLICY_VERSION_MINIMUM=3.5')
47+
4648
# Print a better error if we have no CMake executable on the PATH
4749
if not os.path.dirname(args[0]) and not shutil.which(args[0]):
4850
print(f'emcmake: cmake executable not found on PATH: `{args[0]}`', file=sys.stderr)

0 commit comments

Comments
 (0)