Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor rewrites to CMakeLists.txt file #5

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
8 changes: 8 additions & 0 deletions source/compiler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ endif()
if(APPLE)
set(CMAKE_MACOSX_RPATH ON)
endif()

if(DEFINED PAWN_MAX_FUNC_NAME
Zorono marked this conversation as resolved.
Show resolved Hide resolved
AND PAWN_MAX_FUNC_NAME MATCHES "^[0-9]+$"
AND NOT PAWN_MAX_FUNC_NAME LESS 31)
add_definitions(-DsNAMEMAX=${PAWN_MAX_FUNC_NAME})
else()
add_definitions(-DsNAMEMAX=63)
endif()
#==============================================================================#
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in
${CMAKE_CURRENT_BINARY_DIR}/version.h)
Expand Down