Fix CMake warning (COPY_ONLY -> COPYONLY)
This commit is contained in:
parent
19ced18553
commit
aef6d6d252
@ -44,7 +44,7 @@ if(WIN32)
|
||||
set(ARGS_SRCS ${ARGS_SRCS} dllmain.c amxargs.rc)
|
||||
if(BORLAND)
|
||||
# Borland linker uses a DEF file if one is in the output directory
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/amxargs.def ${CMAKE_BINARY_DIR}/amxargs.def COPY_ONLY)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/amxargs.def ${CMAKE_BINARY_DIR}/amxargs.def COPYONLY)
|
||||
else()
|
||||
# For Microsoft Visual C/C++ we can set explicit flags for exports
|
||||
set_target_properties(amxArgs PROPERTIES LINK_FLAGS "/export:amx_ArgsInit /export:amx_ArgsCleanup /export:amx_ArgsSetCmdLine")
|
||||
@ -58,7 +58,7 @@ set_target_properties(amxDGram PROPERTIES PREFIX "")
|
||||
if(WIN32)
|
||||
set(DGRAM_SRCS ${DGRAM_SRCS} dllmain.c amxargs.rc)
|
||||
if(BORLAND)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/amxdgram.def ${CMAKE_BINARY_DIR}/amxdgram.def COPY_ONLY)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/amxdgram.def ${CMAKE_BINARY_DIR}/amxdgram.def COPYONLY)
|
||||
else()
|
||||
set_target_properties(amxDGram PROPERTIES LINK_FLAGS "/export:amx_DGramInit /export:amx_DGramCleanup")
|
||||
endif()
|
||||
@ -71,7 +71,7 @@ set_target_properties(amxFile PROPERTIES PREFIX "")
|
||||
if(WIN32)
|
||||
set(FILE_SRCS ${FILE_SRCS} dllmain.c amxfile.rc)
|
||||
if(BORLAND)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/amxfile.def ${CMAKE_BINARY_DIR}/amxfile.def COPY_ONLY)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/amxfile.def ${CMAKE_BINARY_DIR}/amxfile.def COPYONLY)
|
||||
else()
|
||||
set_target_properties(amxFile PROPERTIES LINK_FLAGS "/export:amx_FileInit /export:amx_FileCleanup")
|
||||
endif()
|
||||
@ -84,7 +84,7 @@ set_target_properties(amxFixed PROPERTIES PREFIX "")
|
||||
if(WIN32)
|
||||
set(FIXED_SRCS ${FIXED_SRCS} dllmain.c amxfixed.rc)
|
||||
if(BORLAND)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/amxfixed.def ${CMAKE_BINARY_DIR}/amxfixed.def COPY_ONLY)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/amxfixed.def ${CMAKE_BINARY_DIR}/amxfixed.def COPYONLY)
|
||||
else()
|
||||
set_target_properties(amxFixed PROPERTIES LINK_FLAGS "/export:amx_FixedInit /export:amx_FixedCleanup")
|
||||
endif()
|
||||
@ -100,7 +100,7 @@ set_target_properties(amxFloat PROPERTIES PREFIX "")
|
||||
if(WIN32)
|
||||
set(FLOAT_SRCS ${FLOAT_SRCS} dllmain.c amxfloat.rc)
|
||||
if(BORLAND)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/amxfloat.def ${CMAKE_BINARY_DIR}/amxfloat.def COPY_ONLY)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/amxfloat.def ${CMAKE_BINARY_DIR}/amxfloat.def COPYONLY)
|
||||
else()
|
||||
set_target_properties(amxFloat PROPERTIES LINK_FLAGS "/export:amx_FloatInit /export:amx_FloatCleanup")
|
||||
endif()
|
||||
@ -125,7 +125,7 @@ set_target_properties(amxProcess PROPERTIES PREFIX "")
|
||||
if(WIN32)
|
||||
set(PROCESS_SRCS ${PROCESS_SRCS} dllmain.c amxprocess.rc)
|
||||
if(BORLAND)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/amxprocess.def ${CMAKE_BINARY_DIR}/amxprocess.def COPY_ONLY)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/amxprocess.def ${CMAKE_BINARY_DIR}/amxprocess.def COPYONLY)
|
||||
else()
|
||||
set_target_properties(amxProcess PROPERTIES LINK_FLAGS "/export:amx_ProcessInit /export:amx_ProcessCleanup")
|
||||
endif()
|
||||
@ -141,7 +141,7 @@ set_target_properties(amxString PROPERTIES PREFIX "")
|
||||
if(WIN32)
|
||||
set(STRING_SRCS ${STRING_SRCS} dllmain.c amxstring.rc)
|
||||
if(BORLAND)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/amxstring.def ${CMAKE_BINARY_DIR}/amxstring.def COPY_ONLY)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/amxstring.def ${CMAKE_BINARY_DIR}/amxstring.def COPYONLY)
|
||||
else()
|
||||
set_target_properties(amxString PROPERTIES LINK_FLAGS "/export:amx_StringInit /export:amx_StringCleanup")
|
||||
endif()
|
||||
@ -154,7 +154,7 @@ set_target_properties(amxTime PROPERTIES PREFIX "")
|
||||
if(WIN32)
|
||||
set(TIME_SRCS ${TIME_SRCS} dllmain.c amxtime.rc)
|
||||
if(BORLAND)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/amxtime.def ${CMAKE_BINARY_DIR}/amxtime.def COPY_ONLY)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/amxtime.def ${CMAKE_BINARY_DIR}/amxtime.def COPYONLY)
|
||||
else()
|
||||
set_target_properties(amxTime PROPERTIES LINK_FLAGS "/export:amx_TimeInit /export:amx_TimeCleanup")
|
||||
endif()
|
||||
|
@ -64,7 +64,7 @@ if(WIN32)
|
||||
set_source_files_properties(libpawnc.c COMPILE_FLAGS -DPAWNC_DLL)
|
||||
if(BORLAND)
|
||||
# Borland linker uses a DEF file if one is in the output directory
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libpawnc.def.borland ${CMAKE_BINARY_DIR}/pawnc.def COPY_ONLY)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libpawnc.def.borland ${CMAKE_BINARY_DIR}/pawnc.def COPYONLY)
|
||||
else()
|
||||
# Microsoft Visual C/C++ supports a DEF file as if it were a source file
|
||||
set(PAWNC_SRCS ${PAWNC_SRCS} libpawnc.def)
|
||||
@ -86,7 +86,7 @@ if(WIN32)
|
||||
set(PAWNCC_SRCS ${PAWNCC_SRCS} libpawnc.rc)
|
||||
if(BORLAND)
|
||||
# Borland linker uses a DEF file if one is in the output directory
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/pawncc.def.borland ${CMAKE_BINARY_DIR}/pawncc.def COPY_ONLY)
|
||||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/pawncc.def.borland ${CMAKE_BINARY_DIR}/pawncc.def COPYONLY)
|
||||
else()
|
||||
# Microsoft Visual C/C++ supports a DEF file as if it were a source file
|
||||
set(PAWNC_SRCS ${PAWNC_SRCS} pawncc.def)
|
||||
|
Loading…
x
Reference in New Issue
Block a user