mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 04:56:20 +00:00
[CMake] Define perlbind option for all targets (#3538)
This isn't designed well and wasn't handled correctly since the perlbind library was getting built and linked with default options while zone was using PERLBIND_NO_STRICT_SCALAR_TYPES. This was probably leading to some unspecified behavior.
This commit is contained in:
@@ -388,6 +388,7 @@ IF(PERL_LIBRARY_ENABLED)
|
|||||||
INCLUDE_DIRECTORIES(SYSTEM "${PERL_LIBRARY_INCLUDE}")
|
INCLUDE_DIRECTORIES(SYSTEM "${PERL_LIBRARY_INCLUDE}")
|
||||||
ADD_DEFINITIONS(-DEMBPERL)
|
ADD_DEFINITIONS(-DEMBPERL)
|
||||||
ADD_DEFINITIONS(-DEMBPERL_PLUGIN)
|
ADD_DEFINITIONS(-DEMBPERL_PLUGIN)
|
||||||
|
ADD_DEFINITIONS(-DPERLBIND_NO_STRICT_SCALAR_TYPES)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
|||||||
@@ -18,10 +18,6 @@ Eglin
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
// this option disables distinct int/float/string function argument types for
|
|
||||||
// backwards compatibility with current perl api usage
|
|
||||||
// e.g. quest::settimer(0, 1) using number for timer name instead of string
|
|
||||||
#define PERLBIND_NO_STRICT_SCALAR_TYPES
|
|
||||||
#include <perlbind/perlbind.h>
|
#include <perlbind/perlbind.h>
|
||||||
namespace perl = perlbind;
|
namespace perl = perlbind;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user