From 3cecbae324d2a7551f91d7936e408086218ec8c3 Mon Sep 17 00:00:00 2001 From: Mathieu Comandon Date: Tue, 10 Nov 2015 14:15:08 -0800 Subject: [PATCH] Make LINUX_LOCAL_DEV a CMake option --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c3f7b12354..33861631ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -315,7 +315,10 @@ endif(WIN32) # Add an option to build relocatable binaries on Linux # The Sys folder will need to be copied to the Binaries folder. if(UNIX) - add_definitions(-DLINUX_LOCAL_DEV=0) + option(LINUX_LOCAL_DEV "Enable relocatable binary" OFF) + if(LINUX_LOCAL_DEV) + add_definitions('-DLINUX_LOCAL_DEV') + endif(LINUX_LOCAL_DEV) endif(UNIX) # Dolphin requires threads.