From 72d88033e2f24be0fb1e9df614a56f3d5274154c Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Sat, 6 Aug 2022 23:38:34 -0600 Subject: [PATCH] Use relative paths for resource files --- examples/opengl/CMakeLists.txt | 4 ++-- examples/tennis/CMakeLists.txt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/opengl/CMakeLists.txt b/examples/opengl/CMakeLists.txt index 824c7535c..7c54293b3 100644 --- a/examples/opengl/CMakeLists.txt +++ b/examples/opengl/CMakeLists.txt @@ -3,8 +3,8 @@ set(SRC OpenGL.cpp) if (SFML_OS_IOS) set(RESOURCES - ${CMAKE_CURRENT_SOURCE_DIR}/resources/background.jpg - ${CMAKE_CURRENT_SOURCE_DIR}/resources/tuffy.ttf) + resources/background.jpg + resources/tuffy.ttf) set_source_files_properties(${RESOURCES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) endif() diff --git a/examples/tennis/CMakeLists.txt b/examples/tennis/CMakeLists.txt index c2a752485..ebd8bb226 100644 --- a/examples/tennis/CMakeLists.txt +++ b/examples/tennis/CMakeLists.txt @@ -2,8 +2,8 @@ set(SRC Tennis.cpp) if (SFML_OS_IOS) set(RESOURCES - ${CMAKE_CURRENT_SOURCE_DIR}/resources/ball.wav - ${CMAKE_CURRENT_SOURCE_DIR}/resources/tuffy.ttf) + resources/ball.wav + resources/tuffy.ttf) set_source_files_properties(${RESOURCES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) endif()