From 27f4ead55774bfa5cb605ec7983c790ad66be8d2 Mon Sep 17 00:00:00 2001 From: Eirik Marthinsen Date: Sat, 12 Aug 2023 13:33:40 +0200 Subject: [PATCH] Correct macro and option name for enabling user linker Closes #57 --- ProjectOptions.cmake | 2 +- cmake/Linker.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ProjectOptions.cmake b/ProjectOptions.cmake index 2709aa1a..0b3dfdb1 100644 --- a/ProjectOptions.cmake +++ b/ProjectOptions.cmake @@ -132,7 +132,7 @@ macro(myproject_local_options) if(myproject_ENABLE_USER_LINKER) include(cmake/Linker.cmake) - configure_linker(myproject_options) + myproject_configure_linker(myproject_options) endif() include(cmake/Sanitizers.cmake) diff --git a/cmake/Linker.cmake b/cmake/Linker.cmake index 067aac68..c1c19ebe 100644 --- a/cmake/Linker.cmake +++ b/cmake/Linker.cmake @@ -18,7 +18,7 @@ macro(myproject_configure_linker project_name) "Using custom linker: '${USER_LINKER_OPTION}', explicitly supported entries are ${USER_LINKER_OPTION_VALUES}") endif() - if(NOT ENABLE_USER_LINKER) + if(NOT myproject_ENABLE_USER_LINKER) return() endif()