X-Git-Url: http://Server1/repobrowser/?p=xestiaab%2F.git;a=blobdiff_plain;f=source%2FCMakeFunctions%2FOptions.cmake;h=017958a5522bfc890f577ae5c40d36308aac2ea0;hp=5801a3b3e92c09550b73ff0130be954d31da5970;hb=3ef806261b5482a584e05dc8311c8d7633f146b4;hpb=2ead500a411cadcabbe7bcf7efe74a139137d445 diff --git a/source/CMakeFunctions/Options.cmake b/source/CMakeFunctions/Options.cmake index 5801a3b..017958a 100644 --- a/source/CMakeFunctions/Options.cmake +++ b/source/CMakeFunctions/Options.cmake @@ -1,3 +1,11 @@ include(CMakeDependentOption) option(XestiaAddressBook_UNIT_TESTING "Enable unit testing" OFF) + +if(APPLE) + set(SFML_FRAMEWORKS_LOCATION "" CACHE PATH "Location for the SFML framework dependencies.") + + if(NOT EXISTS ${SFML_FRAMEWORKS_LOCATION}) + message(FATAL_ERROR "The location given by SFML_FRAMEWORKS_LOCATION does not exist.") + endif() +endif()