Fixed compilation with MSVC.
This commit is contained in:
@@ -11,7 +11,11 @@ def dependencies(env: Environment, version) -> 'dict':
|
||||
def cook(env: Environment, version) -> dict:
|
||||
repo = env.GitBranch(repo_name = 'mikktspace', remote_url = 'https://github.com/mmikk/MikkTSpace.git', git_ref = 'master')
|
||||
checkout_root = repo['checkout_root']
|
||||
ccflags = env['CCFLAGS'].copy()
|
||||
if env['COMPILER_FAMILY'] == 'cl':
|
||||
ccflags.append('/wd4456')
|
||||
lib_mikktspace = env.StaticLibrary(
|
||||
CCFLAGS = ccflags,
|
||||
CPPPATH = [checkout_root],
|
||||
target = env['LIB_DIR'] + '/mikktspace',
|
||||
source = [os.path.join(repo['checkout_root'], 'mikktspace.c')]
|
||||
|
||||
Reference in New Issue
Block a user