From e2470a89c3cd542b9c2a1e63ed0d78e0f39bed68 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 7 May 2020 01:01:30 -0400 Subject: Add realpath.c (Darwin is so great) --- scripts/CMakeLists.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'scripts/CMakeLists.txt') diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index a9dc74a..bfa6eb2 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -1,3 +1,19 @@ +configure_file( + ${CMAKE_CURRENT_SOURCE_DIR}/spmbuild + ${CMAKE_CURRENT_BINARY_DIR} + COPYONLY +) + +if (APPLE) + add_executable(spm_realpath + realpath.c + ) + install( + PROGRAMS spm_realpath + DESTINATION bin + ) +endif () + install( PROGRAMS spmbuild DESTINATION bin -- cgit From da7861d138cb0e17d36b2b6570e5ae901b246038 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Thu, 7 May 2020 05:48:59 -0400 Subject: Fix installation --- scripts/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/CMakeLists.txt') diff --git a/scripts/CMakeLists.txt b/scripts/CMakeLists.txt index bfa6eb2..d24d32c 100644 --- a/scripts/CMakeLists.txt +++ b/scripts/CMakeLists.txt @@ -9,12 +9,12 @@ if (APPLE) realpath.c ) install( - PROGRAMS spm_realpath + PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/spm_realpath DESTINATION bin ) endif () install( - PROGRAMS spmbuild + PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/spmbuild DESTINATION bin ) -- cgit