|
|
|
|
@ -26,6 +26,7 @@ function(get_guile_env)
|
|
|
|
|
list(APPEND env "PATH=${fpath}")
|
|
|
|
|
set(compiled_path "${CMAKE_BINARY_DIR}/${GUILE_REL_SITECCACHEDIR}")
|
|
|
|
|
string(REGEX REPLACE "^([A-Za-z]):" "/\\1" compiled_path ${compiled_path})
|
|
|
|
|
string(REGEX REPLACE "\\\\" "/" compiled_path ${compiled_path})
|
|
|
|
|
list(APPEND env GUILE_LOAD_COMPILED_PATH=${compiled_path})
|
|
|
|
|
endif()
|
|
|
|
|
list(APPEND env "GNC_MODULE_PATH=${_GNC_MODULE_PATH}")
|
|
|
|
|
@ -54,19 +55,21 @@ function(get_guile_env)
|
|
|
|
|
if (MINGW64)
|
|
|
|
|
set(new_path "")
|
|
|
|
|
foreach(load_item ${guile_load_path})
|
|
|
|
|
string(REGEX REPLACE "^([A-Za-z]):" "/\\1" load_item ${load_item})
|
|
|
|
|
# string(REGEX REPLACE "^([A-Za-z]):" "/\\1" load_item ${load_item})
|
|
|
|
|
string(REGEX REPLACE "\\\\" "/" load_item ${load_item})
|
|
|
|
|
list(APPEND new_path ${load_item})
|
|
|
|
|
endforeach(load_item)
|
|
|
|
|
set(guile_load_path ${new_path})
|
|
|
|
|
|
|
|
|
|
set(new_path "")
|
|
|
|
|
foreach(load_item ${guile_load_compiled_path})
|
|
|
|
|
string(REGEX REPLACE "^([A-Za-z]):" "/\\1" load_item ${load_item})
|
|
|
|
|
# string(REGEX REPLACE "^([A-Za-z]):" "/\\1" load_item ${load_item})
|
|
|
|
|
string(REGEX REPLACE "\\\\" "/" load_item ${load_item})
|
|
|
|
|
list(APPEND new_path ${load_item})
|
|
|
|
|
endforeach(load_item)
|
|
|
|
|
set(guile_load_compiled_path ${new_path})
|
|
|
|
|
endif()
|
|
|
|
|
if (WIN32 AND NOT MINGW64)
|
|
|
|
|
if (WIN32)
|
|
|
|
|
string(REPLACE ";" "\\\\;" GUILE_LOAD_PATH "${guile_load_path}")
|
|
|
|
|
string(REPLACE ";" "\\\\;" GUILE_LOAD_COMPILED_PATH "${guile_load_compiled_path}")
|
|
|
|
|
else()
|
|
|
|
|
|