Skip to content
2 changes: 1 addition & 1 deletion source/compiler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ set(REQUIRED_INCLUDE_FILES
strlcat
)
foreach(FUNCTION_NAME ${REQUIRED_FUNCTIONS})
set(DEFINITION_NAME "HAVE_${FUNCTION_NAME}")
set(DEFINITION_NAME "HAVE_${FUNCTION_NAME}")
check_function_exists(${FUNCTION_NAME} ${DEFINITION_NAME})
if(${DEFINITION_NAME})
add_definitions(-D${DEFINITION_NAME})
Expand Down