summaryrefslogtreecommitdiffstats
path: root/Tests/FindPackageModeMakefileTest/Makefile.in
diff options
context:
space:
mode:
authorGregor Jasny <gjasny@googlemail.com>2020-07-17 13:46:29 (GMT)
committerGregor Jasny <gjasny@googlemail.com>2020-07-17 13:46:29 (GMT)
commit447ecbb6920a00adbed7fb65836b1fbdab2adb98 (patch)
tree7b6744b7d808d632b27fb9a283da8312881213b0 /Tests/FindPackageModeMakefileTest/Makefile.in
parent16692f492607e3af4e30d0a24e41d4c5d238e8c2 (diff)
downloadCMake-447ecbb6920a00adbed7fb65836b1fbdab2adb98.zip
CMake-447ecbb6920a00adbed7fb65836b1fbdab2adb98.tar.gz
CMake-447ecbb6920a00adbed7fb65836b1fbdab2adb98.tar.bz2
Apple: also specify sysroot for linking
Otherwise the compiler/linker will default to the wrong C++ runtime library.
Diffstat (limited to 'Tests/FindPackageModeMakefileTest/Makefile.in')
-rw-r--r--Tests/FindPackageModeMakefileTest/Makefile.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/FindPackageModeMakefileTest/Makefile.in b/Tests/FindPackageModeMakefileTest/Makefile.in
index 5ef67d0..af9fa96 100644
--- a/Tests/FindPackageModeMakefileTest/Makefile.in
+++ b/Tests/FindPackageModeMakefileTest/Makefile.in
@@ -24,7 +24,7 @@ main.o: clean main.cpp
pngtest: main.o
@$(CMAKE_FOO) -DMODE=LINK >$(tmp)
@foo="`cat $(tmp)`"; \
- printf '"%s" %s %s -o pngtest main.o %s\n' $(CMAKE_CXX_COMPILER) "$(CMAKE_CXX_FLAGS)" "$(LDFLAGS)" "$$foo" >$(tmp)
+ printf '"%s" %s %s %s -o pngtest main.o %s\n' $(CMAKE_CXX_COMPILER) "$(CMAKE_CXX_FLAGS)" "$(__EXTRA_OSX_SYSROOT_FLAGS)" "$(LDFLAGS)" "$$foo" >$(tmp)
@cat $(tmp)
@sh $(tmp)
@rm -f $(tmp)