summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Apple-GNU.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2023-09-17 14:33:40 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2023-09-21 11:55:05 (GMT)
commita61c1d6ff4e9d4c2f9d673354aa8ec6a975aa4a5 (patch)
tree8224f4854cc2ea0668153e4bff5fdf3c7da8d7fd /Modules/Platform/Apple-GNU.cmake
parent4ac624debc11e3b87d53a34ccfe3e25ff9c5a426 (diff)
downloadCMake-a61c1d6ff4e9d4c2f9d673354aa8ec6a975aa4a5.zip
CMake-a61c1d6ff4e9d4c2f9d673354aa8ec6a975aa4a5.tar.gz
CMake-a61c1d6ff4e9d4c2f9d673354aa8ec6a975aa4a5.tar.bz2
macOS: Framework: simplify link flag
Use the compiler option rather than the linker one.
Diffstat (limited to 'Modules/Platform/Apple-GNU.cmake')
-rw-r--r--Modules/Platform/Apple-GNU.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Platform/Apple-GNU.cmake b/Modules/Platform/Apple-GNU.cmake
index 9572736..823c790 100644
--- a/Modules/Platform/Apple-GNU.cmake
+++ b/Modules/Platform/Apple-GNU.cmake
@@ -14,6 +14,9 @@ macro(__apple_compiler_gnu lang)
if(NOT CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 4.3)
set(CMAKE_${lang}_SYSTEM_FRAMEWORK_SEARCH_FLAG "-iframework ")
endif()
+
+ set(CMAKE_${lang}_LINK_LIBRARY_USING_FRAMEWORK "-framework <LIBRARY>")
+ set(CMAKE_${lang}_LINK_LIBRARY_USING_FRAMEWORK_SUPPORTED TRUE)
endmacro()
macro(cmake_gnu_set_sysroot_flag lang)