spacefrogg-overlay/x-plane/headshake/src-path.diff

14 lines
594 B
Diff

diff -ru source.oric/CMakeLists.txt source/CMakeLists.txt
--- source.oric/CMakeLists.txt 2020-04-19 18:45:09.885152206 +0200
+++ source/CMakeLists.txt 2020-04-19 20:12:20.327739132 +0200
@@ -14,7 +14,8 @@
option(CMP_MAC "CMP_MAC" OFF)
# Set the libraries path: edit this line to specify your custom library path
-get_filename_component(SDK_PATH "../SDK/" ABSOLUTE)
+option(SDK_PATH "SDK_PATH" "../SDK/")
+get_filename_component(SDK_PATH "${SDK_PATH}" ABSOLUTE)
message("-- Detecting X-Plane SDK path")
if(NOT EXISTS ${SDK_PATH})
message(FATAL_ERROR "Missing SDK folder: ${SDK_PATH}")