From c8d109b0a0eceabb2a4dd8a16def605ce8236281 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 21 May 2024 10:05:57 -0400 Subject: [PATCH] Replace the use of environment variable SFOX_DIR in CMakeLists.txt. --- CMakeLists.txt | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a262f3edb..83a75b44f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1658,10 +1658,19 @@ install (DIRECTORY ) if (WIN32) + +# set (sfox_dir "$ENV{SFOX_DIR}") + + if (DEFINED ENV{SFOX_DIR}) + set(sfox_dir "$ENV{SFOX_DIR}") + else () + set(sfox_dir lib/superfox/win) + endif () + install (FILES - lib/superfox/win/sfrx.exe - lib/superfox/win/sftx.exe - lib/superfox/win/foxchk.exe + ${sfox_dir}/sfrx.exe + ${sfox_dir}/sftx.exe + ${sfox_dir}/foxchk.exe DESTINATION ${CMAKE_INSTALL_BINDIR} #COMPONENT runtime )