Fix setting default SUNSHINE_DEFAULT_DIR
This commit is contained in:
@@ -231,11 +231,11 @@ if(NOT SUNSHINE_ASSETS_DIR)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT SUNSHINE_CONFIG_DIR)
|
if(NOT SUNSHINE_CONFIG_DIR)
|
||||||
set(SUNSHINE_CONFIG_DIR SUNSHINE_ASSETS_DIR)
|
set(SUNSHINE_CONFIG_DIR "${SUNSHINE_ASSETS_DIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(NOT SUNSHINE_DEFAULT_DIR)
|
if(NOT SUNSHINE_DEFAULT_DIR)
|
||||||
set(SUNSHINE_DEFAULT_DIR SUNSHINE_ASSETS_DIR)
|
set(SUNSHINE_DEFAULT_DIR "${SUNSHINE_ASSETS_DIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
list(APPEND CBS_EXTERNAL_LIBRARIES
|
list(APPEND CBS_EXTERNAL_LIBRARIES
|
||||||
|
|||||||
@@ -763,7 +763,7 @@ int parse(int argc, char *argv[]) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!fs::exists(sunshine.config_file.c_str())) {
|
if(!fs::exists(sunshine.config_file)) {
|
||||||
fs::copy_file(SUNSHINE_DEFAULT_DIR "/sunshine.conf", sunshine.config_file);
|
fs::copy_file(SUNSHINE_DEFAULT_DIR "/sunshine.conf", sunshine.config_file);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user